lang/org: add elpa org to load-path in init.el #327

Let's try to change the load-path sooner...
This commit is contained in:
Henrik Lissner 2018-01-06 04:01:48 -05:00
parent 7ab7885edc
commit 185bf58c9e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 9 additions and 7 deletions

9
modules/lang/org/init.el Normal file
View file

@ -0,0 +1,9 @@
;;; lang/org/init.el -*- lexical-binding: t; -*-
;; 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))))