summary refs log tree commit diff stats
path: root/hooks
diff options
context:
space:
mode:
authorAlan Pearce2015-07-18 17:12:59 +0200
committerAlan Pearce2015-07-18 17:12:59 +0200
commit676c0b09332ae0159106c79d1f88fd8c706b4ed0 (patch)
treeab08eb23809ff4516a5adf277c49054cfca57f8b /hooks
parentfd72b1680ad33c4976c588471b03144655b62911 (diff)
downloadnixfiles-676c0b09332ae0159106c79d1f88fd8c706b4ed0.tar.lz
nixfiles-676c0b09332ae0159106c79d1f88fd8c706b4ed0.tar.zst
nixfiles-676c0b09332ae0159106c79d1f88fd8c706b4ed0.zip
RCM: Tangle Emacs init file on install
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-up/emacs7
1 files changed, 6 insertions, 1 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs
index 2e907f7c..0bd4d567 100755
--- a/hooks/post-up/emacs
+++ b/hooks/post-up/emacs
@@ -13,6 +13,11 @@ then
 	fi
 	pushd ~/.emacs.d
 	cask install
+	emacs --batch --eval "(progn
+(find-file \"init.org\")
+(require 'ob-tangle)
+(org-babel-tangle nil \"init.el\")
+(byte-compile-file \"init.el\")
+)"
 	popd
-	emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/elisp
 fi