summary refs log tree commit diff stats
path: root/hooks/post-up/emacs
diff options
context:
space:
mode:
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 0000000..f6071b7
--- /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