summary refs log tree commit diff stats
path: root/git-hooks/post-checkout
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks/post-checkout')
-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 0000000..dfceaee
--- /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