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:
parent
7ab7885edc
commit
185bf58c9e
2 changed files with 9 additions and 7 deletions
|
@ -3,13 +3,6 @@
|
||||||
(defvar +org-dir (expand-file-name "~/work/org/")
|
(defvar +org-dir (expand-file-name "~/work/org/")
|
||||||
"The directory where org files are kept.")
|
"The directory where org files are kept.")
|
||||||
|
|
||||||
;; 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))))
|
|
||||||
|
|
||||||
;; Sub-modules
|
;; Sub-modules
|
||||||
(if (featurep! +attach) (load! +attach))
|
(if (featurep! +attach) (load! +attach))
|
||||||
(if (featurep! +babel) (load! +babel))
|
(if (featurep! +babel) (load! +babel))
|
||||||
|
|
9
modules/lang/org/init.el
Normal file
9
modules/lang/org/init.el
Normal 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))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue