diff options
author | Alex Kost <alezost@gmail.com> | 2017-04-28 16:07:33 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2017-05-04 22:45:53 +0300 |
commit | 97658183eda6e196bd16bed02838d321b45aee70 (patch) | |
tree | 5c86f06161422659fa3174c08eee753fe418654c /etc/indent-code.el.in | |
parent | 8ca0c88a894c685b624757e38ee7663534f03460 (diff) | |
download | 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-x | etc/indent-code.el.in | 4 |
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))) |