all repos — archive/dotfiles @ 10b7c70ce924c634e2620b5afec5c21e1da3dc3c

Superseded by nixfiles

Emacs: Improve add-subdirs-to-load-path by adding the directory itself to load path

Alan Pearce
commit

10b7c70ce924c634e2620b5afec5c21e1da3dc3c

parent

cada3ecec27c61cb00de0b9e218a29abecf4544c

1 file changed, 3 insertions(+), 3 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -26,11 +26,11 @@ (let ((full-path (concat path file)))
(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