summary refs log tree commit diff stats
path: root/hooks
diff options
context:
space:
mode:
authorAlan Pearce2014-04-13 21:28:02 +0100
committerAlan Pearce2014-04-13 21:28:02 +0100
commit31511a9c2284f7394b60e56bbf4389a69bce535c (patch)
tree401215214d2758b0acb1872a72bd216ac6ba3239 /hooks
parent560868dbb5e7d19d166bab4da1d0221adba887bb (diff)
downloadnixfiles-31511a9c2284f7394b60e56bbf4389a69bce535c.tar.lz
nixfiles-31511a9c2284f7394b60e56bbf4389a69bce535c.tar.zst
nixfiles-31511a9c2284f7394b60e56bbf4389a69bce535c.zip
rcm: Run `cask install` for emacs, if installed
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-up/emacs6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs
index f6071b7d..6b04ae06 100755
--- a/hooks/post-up/emacs
+++ b/hooks/post-up/emacs
@@ -2,5 +2,11 @@
 
 if [[ -s $commands[emacs] ]]
 then
+	if [[ -s $commands[cask] ]]
+	then
+		pushd ~/.emacs.d
+		cask install
+		popd
+	fi
 	emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/
 fi