From af351fc049176b48f6e484d927c3293b1077b6e1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 3 Sep 2015 19:58:05 +0200 Subject: Emacs: Defer loading of async until tangling --- tag-emacs/emacs.d/init.org | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tag-emacs/emacs.d/init.org') 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. -- cgit 1.4.1