X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=setup%2F00init.el;h=db3af8cfc71628648d3a01a6ddf92ec5e7f8e009;hb=adc1b50372f1512e8cd1488439327050947676ef;hp=db08adeba09e34ba7cfe6cc6dfa0603c93ef2bff;hpb=e85a749eb28898cc8c9cb65d7edc446bb849e57d;p=emacs-init.git diff --git a/setup/00init.el b/setup/00init.el index db08ade..db3af8c 100644 --- a/setup/00init.el +++ b/setup/00init.el @@ -1,3 +1,9 @@ -(add-to-list 'load-path "~/.emacs.d/auto-install") -(setq custom-file "~/.emacs.d/emacs-custom.el") -(load custom-file) +(let ((base (file-name-directory + (directory-file-name + (file-name-directory + (or load-file-name + (when (boundp 'bytecomp-filename) bytecomp-filename) buffer-file-name)))))) + + (add-to-list 'load-path (concat base "lib")) + (add-to-list 'load-path (concat base "auto-install")) + (setq custom-file (concat base "emacs-custom.el")))