diff options
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/init.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index ab4a045..993965a 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -25,16 +25,16 @@ ;;; Code: -(add-to-list 'load-path (locate-user-emacs-file "init/")) - (eval-and-compile + (add-to-list 'load-path (format "%sinit/" default-directory)) + (mapc (lambda (d) (add-to-list 'load-path d)) (directory-files - (locate-user-emacs-file "vendor-lisp/") t "^[^.]"))) + (format "%svendor-lisp/" default-directory) t "^[^.]")) -(eval-and-compile - (add-to-list 'load-path (locate-user-emacs-file "site-lisp/")) - (let ((loaddefs (locate-user-emacs-file "site-lisp/site-autoloads.el"))) + (add-to-list 'load-path (format "%ssite-lisp/" default-directory)) + + (let ((loaddefs (format "%ssite-lisp/site-autoloads.el" default-directory))) (when (file-exists-p loaddefs) (load loaddefs)))) |