diff options
author | Alan Pearce | 2013-05-03 19:13:37 +0100 |
---|---|---|
committer | Alan Pearce | 2013-05-03 19:13:37 +0100 |
commit | 10b7c70ce924c634e2620b5afec5c21e1da3dc3c (patch) | |
tree | 3b4f2f3362f5f8fb55248dc9fbb76b871818c787 | |
parent | cada3ecec27c61cb00de0b9e218a29abecf4544c (diff) | |
download | nixfiles-10b7c70ce924c634e2620b5afec5c21e1da3dc3c.tar.lz nixfiles-10b7c70ce924c634e2620b5afec5c21e1da3dc3c.tar.zst nixfiles-10b7c70ce924c634e2620b5afec5c21e1da3dc3c.zip |
Emacs: Improve add-subdirs-to-load-path by adding the directory itself to load path
-rw-r--r-- | emacs/init.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el index 261609db..5acf0bc2 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -26,11 +26,11 @@ (if (and (not (string-prefix-p "." file)) (file-directory-p full-path)) (add-to-list 'load-path full-path)))) - (directory-files path)))) + (directory-files path))) + (add-to-list 'load-path path)) (if (file-exists-p (concat *el-get-dir* "el-get")) - (progn (add-subdirs-to-load-path *el-get-dir*) - (add-to-list 'load-path *el-get-dir*)) + (add-subdirs-to-load-path *el-get-dir*) (unless (require 'el-get nil t) (with-current-buffer (url-retrieve-synchronously |