From eface3a29f54cb4d0802264333188e444a1f65f7 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 28 Mar 2013 01:22:20 +0100 Subject: Emacs: Remove extraneous loadpath additions I've stopped installing Emacs from the bzr sources and instead use a package again. --- emacs/init.org | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 3ec9a00..0add126 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -24,27 +24,6 @@ has completed loading. `(add-hook 'emacs-startup-hook #'(lambda () ,@body))) #+END_SRC -Add ~/usr/share/emacs/site-lisp~ and -~/usr/local/emacs/share/emacs/site-lisp~ and all their sub-directories -to the ~load-path~ so I can use modules from both Emacs from the -official repository *and* the self-compiled one. - -This should be done both when compiling the elisp file and when -loading it so it doesn't complain about missing modules and such. - -#+BEGIN_SRC emacs-lisp - (eval-and-compile - (defun oni:path-init (dir) - "Add DIR to `load-path' and all its subdirectories, unless - DIR is already in `load-path'." - (unless (or (member dir load-path) (not (file-exists-p dir))) - (let ((default-directory dir)) - (add-to-list 'load-path dir t) - (normal-top-level-add-subdirs-to-load-path)))) - (oni:path-init "/usr/share/emacs/site-lisp") - (oni:path-init "/usr/local/emacs/share/emacs/site-lisp")) -#+END_SRC - Defer loading my theme until after emacs initialization. This is because it has been installed with ~package.el~, and the packages aren't added to the ~load-path~ until _after_ ~init.el~ has been run through. -- cgit v1.2.3-54-g00ecf