Isolate builtin org at compile time
Attempts to address the elusive "invalid-function org-preserve-local-variables" error mentioned in: #1116 #1169, and This error is otherwise avoided by running `bin/doom compile :plugins`
This commit is contained in:
parent
733eb962ac
commit
574dae1426
1 changed files with 8 additions and 1 deletions
|
@ -3,7 +3,14 @@
|
|||
|
||||
;; Installs a cutting-edge version of org-mode
|
||||
(package! org-plus-contrib)
|
||||
(package! org :ignore t) ; ignore org from ELPA
|
||||
|
||||
;; Prevent built-in Org from playing into the byte-compilation of
|
||||
;; `org-plus-contrib'.
|
||||
(when-let* ((orglib (locate-library "org" nil doom-site-load-path)))
|
||||
(setq load-path (delete (substring (file-name-directory orglib) 0 -1)
|
||||
load-path)))
|
||||
;; Ignore org on ELPA, if possible
|
||||
(package! org :ignore t)
|
||||
|
||||
(package! org-bullets :recipe (:fetcher github :repo "Kaligule/org-bullets"))
|
||||
(package! org-yt :recipe (:fetcher github :repo "TobiasZawada/org-yt"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue