summary refs log tree commit diff stats
path: root/git-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/post-checkout6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-hooks/post-checkout b/git-hooks/post-checkout
new file mode 100755
index 00000000..dfceaee2
--- /dev/null
+++ b/git-hooks/post-checkout
@@ -0,0 +1,6 @@
+#!/usr/bin/env zsh
+if [[ -x =emacs ]]
+then
+	emacs --batch -f batch-byte-compile ~/.emacs.d/init.el
+	emacs --batch -f batch-byte-compile ~/.emacs.d/elisp/*.el
+fi