summary refs log tree commit diff stats
path: root/hooks/post-up/emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-04-12 18:17:23 +0100
committerAlan Pearce2014-04-12 18:17:23 +0100
commit65f9082920ad3d3d92929d68a125986a8c70cd0b (patch)
tree15b4be2190b44fee7a86c106efcbe11084f4a305 /hooks/post-up/emacs
parent81c8016d1e296ed91af69f2d5bf435d7d657af04 (diff)
downloadnixfiles-65f9082920ad3d3d92929d68a125986a8c70cd0b.tar.lz
nixfiles-65f9082920ad3d3d92929d68a125986a8c70cd0b.tar.zst
nixfiles-65f9082920ad3d3d92929d68a125986a8c70cd0b.zip
Move install functionality to rcm hooks
Diffstat (limited to 'hooks/post-up/emacs')
-rwxr-xr-xhooks/post-up/emacs6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs
new file mode 100755
index 00000000..f6071b7d
--- /dev/null
+++ b/hooks/post-up/emacs
@@ -0,0 +1,6 @@
+#!/usr/bin/env zsh
+
+if [[ -s $commands[emacs] ]]
+then
+	emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/
+fi