From 9c6faab4adf09bd93e3ae84174df220538fa9a0b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 18 May 2013 17:48:48 +0100 Subject: Add git hooks to recompile emacs init file and elisp directory --- git-hooks/post-checkout | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 git-hooks/post-checkout (limited to 'git-hooks') 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 -- cgit 1.4.1