diff options
author | Alan Pearce | 2014-04-27 12:28:08 +0100 |
---|---|---|
committer | Alan Pearce | 2014-04-27 12:28:08 +0100 |
commit | fa4613b16d19a7389d056f9ad10c2d9590ef1097 (patch) | |
tree | 4210f864459ad4d8ac9f5b9667edadce41bf81f6 /hooks/post-up/emacs | |
parent | bdf40c97b2fdb48aa509c76ba1ad3f5d86839fb6 (diff) | |
download | nixfiles-fa4613b16d19a7389d056f9ad10c2d9590ef1097.tar.lz nixfiles-fa4613b16d19a7389d056f9ad10c2d9590ef1097.tar.zst nixfiles-fa4613b16d19a7389d056f9ad10c2d9590ef1097.zip |
rcm: Install Cask for Emacs if it isn't already
Diffstat (limited to 'hooks/post-up/emacs')
-rwxr-xr-x | hooks/post-up/emacs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs index 6b04ae06..8bd76096 100755 --- a/hooks/post-up/emacs +++ b/hooks/post-up/emacs @@ -2,11 +2,17 @@ if [[ -s $commands[emacs] ]] then - if [[ -s $commands[cask] ]] + if [[ -z $commands[cask] ]] then - pushd ~/.emacs.d - cask install - popd + git clone git://github.com/cask/cask ~/.cask + if [[ ! -d ~/bin ]] + then + mkdir ~/bin + fi + ln -s ~/.cask/bin/cask ~/bin/cask fi + pushd ~/.emacs.d + cask install + popd emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/ fi |