all repos — archive/dotfiles @ 4c98cfe9ac363948087307020b2d337920ee5a8a

Superseded by nixfiles

Emacs: Don’t use find-file in tangle-init
Alan Pearce alan.pearce@spotcap.com
Wed, 23 Dec 2015 14:49:45 +0100
commit

4c98cfe9ac363948087307020b2d337920ee5a8a

parent

7da19e0e1c018b6965702c2a6b0242d0315e61a7

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

jump to
M tag-emacs/emacs.d/init.orgtag-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