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!
11 lines
460 B
EmacsLisp
11 lines
460 B
EmacsLisp
;;; lang/org/init.el -*- lexical-binding: t; -*-
|
|
|
|
;; Ensure ELPA org is prioritized above built-in org.
|
|
(eval-and-compile
|
|
(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)))
|