From 10b7c70ce924c634e2620b5afec5c21e1da3dc3c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 3 May 2013 19:13:37 +0100 Subject: Emacs: Improve add-subdirs-to-load-path by adding the directory itself to load path --- emacs/init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'emacs') 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 -- cgit 1.4.1