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

1 file changed, 6 insertions(+), 0 deletions(-)

changed files
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