all repos — nixfiles @ 9c6faab4adf09bd93e3ae84174df220538fa9a0b

System and user configuration, managed by nix and home-manager

Add git hooks to recompile emacs init file and elisp directory

Alan Pearce
commit

9c6faab4adf09bd93e3ae84174df220538fa9a0b

parent

41d5123ac903f11518ee8dfbda79a69750ba1698

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
A 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
M installinstall
@@ -33,6 +33,7 @@ fi
done } +install-dot dotfiles/.git/hooks/ dotfiles/git-hooks/* install-dot .emacs.d/ dotfiles/emacs/* install-dot . dotfiles/^install(.) dotfiles/zsh/zshrc install-dot .ssh/ dotfiles/ssh/*