lang/org: refactor load-path mods & don't forget it
Previously, Doom would forget lang/org's modification of the load-path if you call doom//reload-load-path (which is called when you do package management with an open Emacs session). No more!
This commit is contained in:
parent
2734810060
commit
c0680e6fa3
1 changed files with 6 additions and 4 deletions
|
@ -2,8 +2,10 @@
|
|||
|
||||
;; Ensure ELPA org is prioritized above built-in org.
|
||||
(eval-and-compile
|
||||
(when-let* ((path (locate-library "org" nil doom--base-load-path)))
|
||||
(setq load-path
|
||||
(delete (substring (file-name-directory path) 0 -1)
|
||||
load-path))))
|
||||
(when-let* ((old-path (locate-library "org" nil doom--base-load-path)))
|
||||
(setq old-path (substring (file-name-directory old-path) 0 -1))
|
||||
(delete old-path load-path)
|
||||
|
||||
;; We remove it from the base load path too so that `doom//reload-load-path'
|
||||
;; won't undo this modification.
|
||||
(delete old-path doom--base-load-path)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue