Emacs: Fix tangling, again
1 file changed, 3 insertions(+), 1 deletion(-)
jump to
M tag-emacs/emacs.d/init.org → tag-emacs/emacs.d/init.org
@@ -2484,12 +2484,14 @@ to the =after-save-hook= ensuring to always tangle and byte-compile the =org=-document after changes. #+BEGIN_SRC emacs-lisp + (req-package async + :defer 2) + (defun tangle-init () "If the current buffer is 'init.org' the code-blocks are tangled, and the tangled file is compiled." (when (string-suffix-p "init.org" (buffer-file-name)) - (require 'async) (async-start `(lambda () ;; Avoid running hooks when tangling.