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:
parent
fab6fb1270
commit
55ad843a09
1 changed files with 5 additions and 4 deletions
|
@ -4,10 +4,11 @@
|
||||||
"The directory where org files are kept.")
|
"The directory where org files are kept.")
|
||||||
|
|
||||||
;; Ensure ELPA org is prioritized above built-in org.
|
;; Ensure ELPA org is prioritized above built-in org.
|
||||||
(when-let* ((path (locate-library "org" nil doom--base-load-path)))
|
(eval-and-compile
|
||||||
(setq load-path
|
(when-let* ((path (locate-library "org" nil doom--base-load-path)))
|
||||||
(delete (substring (file-name-directory path) 0 -1)
|
(setq load-path
|
||||||
load-path)))
|
(delete (substring (file-name-directory path) 0 -1)
|
||||||
|
load-path))))
|
||||||
|
|
||||||
;; Sub-modules
|
;; Sub-modules
|
||||||
(if (featurep! +attach) (load! +attach))
|
(if (featurep! +attach) (load! +attach))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue