Emacs: Remove extraneous loadpath additions
I've stopped installing Emacs from the bzr sources and instead use a package again.
This commit is contained in:
parent
bd575ffdcf
commit
eface3a29f
1 changed files with 0 additions and 21 deletions
|
@ -24,27 +24,6 @@ has completed loading.
|
||||||
`(add-hook 'emacs-startup-hook #'(lambda () ,@body)))
|
`(add-hook 'emacs-startup-hook #'(lambda () ,@body)))
|
||||||
#+END_SRC
|
#+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
|
Defer loading my theme until after emacs initialization. This is
|
||||||
because it has been installed with ~package.el~, and the packages aren't
|
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.
|
added to the ~load-path~ until _after_ ~init.el~ has been run through.
|
||||||
|
|
Loading…
Reference in a new issue