summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-03-28 01:22:20 +0100
committerGravatar Tom Willemsen2013-03-28 01:22:20 +0100
commiteface3a29f54cb4d0802264333188e444a1f65f7 (patch)
treecb783131a24a5a773628babd258e100c73960784
parentbd575ffdcf12b6364c7d261fcd7559c7b99c56f0 (diff)
downloaddotfiles-eface3a29f54cb4d0802264333188e444a1f65f7.tar.gz
dotfiles-eface3a29f54cb4d0802264333188e444a1f65f7.zip
Emacs: Remove extraneous loadpath additions
I've stopped installing Emacs from the bzr sources and instead use a package again.
-rw-r--r--emacs/init.org21
1 files changed, 0 insertions, 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.