diff options
author | Alan Pearce | 2013-05-18 17:48:48 +0100 |
---|---|---|
committer | Alan Pearce | 2013-05-18 17:48:48 +0100 |
commit | 9c6faab4adf09bd93e3ae84174df220538fa9a0b (patch) | |
tree | 3b101b947929f0da41506a5d87dd4d9cdfeb5930 /git-hooks/post-checkout | |
parent | 41d5123ac903f11518ee8dfbda79a69750ba1698 (diff) | |
download | nixfiles-9c6faab4adf09bd93e3ae84174df220538fa9a0b.tar.lz nixfiles-9c6faab4adf09bd93e3ae84174df220538fa9a0b.tar.zst nixfiles-9c6faab4adf09bd93e3ae84174df220538fa9a0b.zip |
Add git hooks to recompile emacs init file and elisp directory
Diffstat (limited to 'git-hooks/post-checkout')
-rwxr-xr-x | git-hooks/post-checkout | 6 |
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 |