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.