From 6f7da55585ecb39e6e0d302b1bab2ac67063afb2 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 21 Jan 2021 23:17:28 -0600 Subject: 2020-01-21 --- init.el | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 221956c..332468c 100644 --- a/init.el +++ b/init.el @@ -39,16 +39,12 @@ If COMMANDS is empty or nil, simply return the result of CONDITIONS." (config.org (concat config ".org")) (straight-org-dir (expand-file-name "straight/build/org" user-emacs-directory))) - ;; Unless config.org is /newer/ than config.el, *or* the config - ;; is able to be loaded without errors, load the config from - ;; config.org. - (unless (or (file-newer-than-file-p config.org config.el) - (load config 'no-error)) - ;; A plain require here just loads the older `org' - ;; in Emacs' install dir. We need to add the newer - ;; one to the `load-path', hopefully that's all. - (when (file-exists-p straight-org-dir) - (add-to-list 'load-path straight-org-dir)) - ;; Load config.org - (require 'org) - (org-babel-load-file config.org))) + (unless (load config 'no-error)) + ;; A plain require here just loads the older `org' + ;; in Emacs' install dir. We need to add the newer + ;; one to the `load-path', hopefully that's all. + (when (file-exists-p straight-org-dir) + (add-to-list 'load-path straight-org-dir)) + ;; Load config.org + (require 'org) + (org-babel-load-file config.org :compile)) -- cgit 1.4.1-21-gabe81