all repos — nixfiles @ ef8d1f6a691227522eb2b69a19b6fba02c955b02

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

hooks/post-up/emacs (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env zsh

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