From 9f554b3976046d20e2715fb4016de5e41ecb2e95 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 4 Feb 2026 01:31:04 -0800 Subject: [PATCH] emacs: tangle org-config outputs before load --- dotfiles/emacs.d/README.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 5e2adf50..400bebd8 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2938,8 +2938,14 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 *** org My org-mode configuration now lives in its own file org-config.org. #+BEGIN_SRC emacs-lisp -(org-babel-load-file - (expand-file-name "org-config.org" user-emacs-directory)) +(let* ((org-config (expand-file-name "org-config.org" user-emacs-directory)) + (org-config-el (expand-file-name "org-config.el" user-emacs-directory))) + (when (file-newer-than-file-p org-config org-config-el) + ;; Tangle all outputs so org-config-bind.el/org-config-config.el are fresh. + (org-babel-tangle-file org-config) + (when (file-exists-p org-config-el) + (set-file-times org-config-el))) + (load-file org-config-el)) #+END_SRC *** TeX #+BEGIN_SRC emacs-lisp