summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-12-23 14:49:45 +0100
committerAlan Pearce2015-12-23 14:49:45 +0100
commit4c98cfe9ac363948087307020b2d337920ee5a8a (patch)
treec28aa35a8208513790583b4eb7d2e282b29844c6
parent7da19e0e1c018b6965702c2a6b0242d0315e61a7 (diff)
downloadnixfiles-4c98cfe9ac363948087307020b2d337920ee5a8a.tar.lz
nixfiles-4c98cfe9ac363948087307020b2d337920ee5a8a.tar.zst
nixfiles-4c98cfe9ac363948087307020b2d337920ee5a8a.zip
Emacs: Don’t use find-file in tangle-init
-rw-r--r--tag-emacs/emacs.d/init.org3
1 files changed, 1 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index d3fcba5e..138d1f03 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2471,9 +2471,8 @@ the =org=-document after changes.
           ;; 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