Remove built-in org from load-path at install time

Makes it less likely that packages will load the original org before the
new one has been installed.
This commit is contained in:
Henrik Lissner 2019-08-08 10:10:11 -04:00
parent 5454ca4c75
commit 3c8e868b1b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,6 +1,12 @@
;; -*- no-byte-compile: t; -*-
;;; lang/org/packages.el
;; Prevent built-in Org from playing into the byte-compilation of
;; `org-plus-contrib'.
(when-let (orglib (locate-library "org" nil doom--initial-load-path))
(setq load-path (delete (substring (file-name-directory orglib) 0 -1)
load-path)))
(package! org-plus-contrib) ; install cutting-edge version of org-mode
(package! org-bullets :recipe (:host github :repo "Kaligule/org-bullets"))
(package! toc-org)