From 185bf58c9e8193dde85078ffe1b594148a92b9e9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 6 Jan 2018 04:01:48 -0500 Subject: [PATCH] lang/org: add elpa org to load-path in init.el #327 Let's try to change the load-path sooner... --- modules/lang/org/config.el | 7 ------- modules/lang/org/init.el | 9 +++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 modules/lang/org/init.el diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index e46fe9c42..e9ce28cb3 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -3,13 +3,6 @@ (defvar +org-dir (expand-file-name "~/work/org/") "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 (if (featurep! +attach) (load! +attach)) (if (featurep! +babel) (load! +babel)) diff --git a/modules/lang/org/init.el b/modules/lang/org/init.el new file mode 100644 index 000000000..184da000b --- /dev/null +++ b/modules/lang/org/init.el @@ -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)))) +