all repos — nixfiles @ c416be67dfc497c1ae7b771e9cce94a5697cbea6

System and user configuration, managed by nix and home-manager

Emacs: Improve tangling usability

Show a message when tangling and make the function a command
Alan Pearce alan.pearce@spotcap.com
Tue, 10 Nov 2015 15:21:10 +0100
commit

c416be67dfc497c1ae7b771e9cce94a5697cbea6

parent

0ad05722d21d6d8dcb953fd9fa9297f1ce49bf60

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -2530,7 +2530,9 @@ (defun tangle-init ()     "If the current buffer is 'init.org' the code-blocks are
       tangled, and the tangled file is compiled."
 
+    (interactive)
     (when (string-suffix-p "init.org" (buffer-file-name))
+      (message "Tangling init")
       (async-start
        `(lambda ()
           ;; Avoid running hooks when tangling.