summary refs log tree commit diff stats
path: root/hooks/post-up/emacs
blob: aad74be70460839767e99cb8674be4447a00a772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env zsh

if [[ -s $commands[emacs] ]]
then
	pushd ~/.emacs.d
	emacs --batch --eval "(progn
(setq vc-follow-symlinks nil)
(find-file \"init.org\")
(require 'ob-tangle)
(org-babel-tangle nil \"init.el\")
(byte-compile-file \"init.el\")
(load-file \"init.el\")
)"
	popd
fi