summaryrefslogtreecommitdiff
path: root/etc/indent-code.el.in
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2017-04-28 16:07:33 +0300
committerAlex Kost <alezost@gmail.com>2017-05-04 22:45:53 +0300
commit97658183eda6e196bd16bed02838d321b45aee70 (patch)
tree5c86f06161422659fa3174c08eee753fe418654c /etc/indent-code.el.in
parent8ca0c88a894c685b624757e38ee7663534f03460 (diff)
downloadgnu-guix-97658183eda6e196bd16bed02838d321b45aee70.tar
gnu-guix-97658183eda6e196bd16bed02838d321b45aee70.tar.gz
etc: indent-code.el: Define source tree by "indent-code.el".
* etc/indent-code.el.in: Set default directory by "indent-code.el" itself, otherwise it works only when called from the top directory of the guix source tree.
Diffstat (limited to 'etc/indent-code.el.in')
-rwxr-xr-xetc/indent-code.el.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/indent-code.el.in b/etc/indent-code.el.in
index 68ad72c562..6102b5d1ab 100755
--- a/etc/indent-code.el.in
+++ b/etc/indent-code.el.in
@@ -26,10 +26,10 @@
;;; Code:
-;; Load Scheme indentation rules from the current directory.
+;; Load Scheme indentation rules from ".dir-locals.el".
(with-temp-buffer
(scheme-mode)
- (let ((default-directory (file-name-as-directory "."))
+ (let ((default-directory (file-name-as-directory load-file-name))
(enable-local-variables :all))
(hack-dir-local-variables)
(hack-local-variables-apply)))