summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-12-16 19:10:21 -0600
committerCase Duckworth2020-12-16 19:10:21 -0600
commit3cd24ff4c8662d9a734fafc66569232f34e3b5ae (patch)
treead726258940415d162eb7df15c04be5d1c208db4
parentBootstrap straight.el on Windows by, just, git cloning it (diff)
downloademacs-3cd24ff4c8662d9a734fafc66569232f34e3b5ae.tar.gz
emacs-3cd24ff4c8662d9a734fafc66569232f34e3b5ae.zip
Change init.el to load config.org if it’s newer
… I think.  Needs testing.
-rw-r--r--config.org11
1 files changed, 7 insertions, 4 deletions
diff --git a/config.org b/config.org index 70c49e4..72aeea4 100644 --- a/config.org +++ b/config.org
@@ -1238,11 +1238,14 @@ from [[https://karthinks.com/software/more-batteries-included-with-emacs/#regexp
1238 inspired by [[https://protesilaos.com/dotemacs/#h:584c3604-55a1-49d0-9c31-abe46cb1f028][Protesilaos Stavrou]]. 1238 inspired by [[https://protesilaos.com/dotemacs/#h:584c3604-55a1-49d0-9c31-abe46cb1f028][Protesilaos Stavrou]].
1239 1239
1240 #+begin_src emacs-lisp 1240 #+begin_src emacs-lisp
1241 (let ((conf (expand-file-name "config" 1241 (let* ((conf (expand-file-name "config"
1242 user-emacs-directory))) 1242 user-emacs-directory))
1243 (unless (load conf 'no-error) 1243 (conf-el (concat conf ".el"))
1244 (conf-org (concat conf ".org")))
1245 (unless (and (file-newer-than-file-p conf-el conf-org)
1246 (load conf 'no-error))
1244 (require 'org) 1247 (require 'org)
1245 (org-babel-load-file (concat conf ".org")))) 1248 (org-babel-load-file conf-org)))
1246 #+end_src 1249 #+end_src
1247 1250
1248*** early-init.el 1251*** early-init.el