mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: fix byte-compiler using outdated, built-in org #327
During runtime, the new version of org (installed via ELPA) is added to load-path, but this doesn't happen during compile-time. Wrap it in eval-and-compile and that changes.
This commit is contained in:
@ -4,10 +4,11 @@
|
||||
"The directory where org files are kept.")
|
||||
|
||||
;; 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)))
|
||||
load-path))))
|
||||
|
||||
;; Sub-modules
|
||||
(if (featurep! +attach) (load! +attach))
|
||||
|
Reference in New Issue
Block a user