Emacs: Don’t use find-file in tangle-init
Alan Pearce alan.pearce@spotcap.com
Wed, 23 Dec 2015 14:49:45 +0100
1 files changed, 1 insertions(+), 2 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-emacs/emacs.d/init.org
@@ -2471,9 +2471,8 @@ `(lambda () ;; Avoid running hooks when tangling. (let ((prog-mode-hook nil) (dest (concat user-emacs-directory "init.el"))) - (find-file ,(buffer-file-name)) (require 'ob-tangle) - (org-babel-tangle nil dest) + (org-babel-tangle-file ,(buffer-file-name) dest) (if (byte-compile-file dest) dest (with-current-buffer byte-compile-log-buffer