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:
Henrik Lissner 2019-02-26 23:31:30 -05:00
parent 733eb962ac
commit 574dae1426
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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"))