blob: 05a5c9d129a51ca421bb550c4b1e351efcf46f11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
EMACS_COMMAND=$(command -v Emacs || command -v emacs)
if [[ -s $EMACS_COMMAND ]]
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
|