diff options
author | Alan Pearce | 2015-09-03 19:58:05 +0200 |
---|---|---|
committer | Alan Pearce | 2015-09-03 19:58:05 +0200 |
commit | af351fc049176b48f6e484d927c3293b1077b6e1 (patch) | |
tree | bd36628b5765312734ef2e283b1b35f258a22729 /tag-emacs | |
parent | ec66ac0081b68df0220ab6f5fc0290b611bf9a6f (diff) | |
download | nixfiles-af351fc049176b48f6e484d927c3293b1077b6e1.tar.lz nixfiles-af351fc049176b48f6e484d927c3293b1077b6e1.tar.zst nixfiles-af351fc049176b48f6e484d927c3293b1077b6e1.zip |
Emacs: Defer loading of async until tangling
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.org | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 9085c4a5..a088d40e 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -2482,13 +2482,12 @@ to the =after-save-hook= ensuring to always tangle and byte-compile the =org=-document after changes. #+BEGIN_SRC emacs-lisp - (req-package async) - (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. |