Move the pre-init section back to init.el
Emacs sometimes (often? always?) loads an old Org version, then upgrades it after `configuration.org` is loaded. To prevent this, i simply move back to a non-org configuration. I never used any real Org features in my config anyway.
This commit is contained in:
parent
814dcf5778
commit
8534e3c8d7
@ -1,31 +1,3 @@
|
|||||||
* Pre-init
|
|
||||||
|
|
||||||
** Add my own, version controlled ~lisp~ directory to ~load-path~
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(add-to-list 'load-path (expand-file-name
|
|
||||||
(convert-standard-filename "lisp/")
|
|
||||||
user-emacs-directory))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Do the same with the local ~site-lisp~ if it’s there
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(let ((site-lisp-dir "/usr/local/share/emacs/site-lisp"))
|
|
||||||
(when (file-directory-p site-lisp-dir)
|
|
||||||
(dolist (elt (directory-files site-lisp-dir))
|
|
||||||
(unless (or (string= elt ".") (string= elt ".."))
|
|
||||||
(add-to-list 'load-path (expand-file-name elt site-lisp-dir))))))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Load ~xdg-paths~
|
|
||||||
|
|
||||||
I prefer using freedesktop’s desktop specification everywhere.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(load "xdg-paths")
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Set up the package manager
|
* Set up the package manager
|
||||||
|
|
||||||
I’m a ~package.el~ user. Don’t package-shame me!
|
I’m a ~package.el~ user. Don’t package-shame me!
|
||||||
|
17
init.el
17
init.el
@ -10,6 +10,23 @@
|
|||||||
;; Initialize the package system and use-package
|
;; Initialize the package system and use-package
|
||||||
(setq load-prefer-newer t)
|
(setq load-prefer-newer t)
|
||||||
|
|
||||||
|
;; Add my own, version controlled ~lisp~ directory to ~load-path~
|
||||||
|
|
||||||
|
(add-to-list 'load-path (expand-file-name
|
||||||
|
(convert-standard-filename "lisp/")
|
||||||
|
user-emacs-directory))
|
||||||
|
|
||||||
|
;; Do the same with the local ~site-lisp~ if it’s there
|
||||||
|
|
||||||
|
(let ((site-lisp-dir "/usr/local/share/emacs/site-lisp"))
|
||||||
|
(when (file-directory-p site-lisp-dir)
|
||||||
|
(dolist (elt (directory-files site-lisp-dir))
|
||||||
|
(unless (or (string= elt ".") (string= elt ".."))
|
||||||
|
(add-to-list 'load-path (expand-file-name elt site-lisp-dir))))))
|
||||||
|
|
||||||
|
;; I prefer using freedesktop’s desktop specification everywhere
|
||||||
|
(load "xdg-paths")
|
||||||
|
|
||||||
;; I started moving my configuration to this Org file. It’s easier to document this way.
|
;; I started moving my configuration to this Org file. It’s easier to document this way.
|
||||||
(org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))
|
(org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user