Commits

Anonymous committed 5f8f7b1

[emacs] do not use EMACSLOADPATH as it overwrite system paths

:backout: 1148428ff389

  • Participants
  • Parent commits c9a6169

Comments (0)

Files changed (2)

File emacs/init.el

+;; add directories from top level "site-lisp"
+(let ((default-directory "~/.emacs.d/site-lisp/"))
+  (normal-top-level-add-to-load-path '("."))
+  (normal-top-level-add-subdirs-to-load-path))
+
+(let ((default-directory
+        (substitute-in-file-name "$XDG_DATA_HOME/emacs/site-lisp/")))
+  (normal-top-level-add-to-load-path '("."))
+  (normal-top-level-add-subdirs-to-load-path))
+
 ;; allow multiple daemon on a single systme
 ;; http://tychoish.com/rhizome/running-multiple-emacs-daemons-on-a-single-system
 (setq server-use-tcp t)
 
 # default editor (should be fast)
 export EDITOR='/usr/bin/emacs -Q'
-export EMACSLOADPATH="$XDG_CONFIG_HOME/emacs/site-lisp:$XDG_DATA_HOME/emacs/site-lisp:$XDG_LIB_HOME/lib/emacs/site-lisp"