From f4a198ccf58de28d05a9aef5ad970dac6ee9dd50 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 27 Oct 2020 13:41:40 -0500 Subject: Don't load init.el after tangling It went into a forever loop... :( I also made the function interactive, though without the loading idk if it's that important. --- config.org | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 3bfc426..a655267 100644 --- a/config.org +++ b/config.org @@ -37,13 +37,12 @@ After the first run, the above ~init.el~ will be replaced by the tangled stuff h (defun acdw/tangle-init () "If the current buffer is `init.org', the code blocks are tangled, and the tangled file is compiled and loaded." + (interactive) (when (equal (buffer-file-name) (expand-file-name (concat user-emacs-directory "config.org"))) ;; Avoid running hooks when tangling. (let ((prog-mode-hook nil)) - (org-babel-tangle) - (load-file (concat user-emacs-directory "early-init.el")) - (load-file (concat user-emacs-directory "init.el"))))) + (org-babel-tangle)))) (add-hook 'after-save-hook #'acdw/tangle-init) #+END_SRC -- cgit 1.4.1-21-gabe81