summary refs log tree commit diff stats
path: root/hooks/pre-up/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/pre-up/emacs')
-rwxr-xr-xhooks/pre-up/emacs8
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/pre-up/emacs b/hooks/pre-up/emacs
new file mode 100755
index 0000000..01ca279
--- /dev/null
+++ b/hooks/pre-up/emacs
@@ -0,0 +1,8 @@
+#!/usr/bin/env zsh
+
+# Remove broken elisp symlink from old versions
+elisp="$HOME/.emacs.d/elisp"
+if [[ -L "$elisp" && ! -e "$elisp" ]]
+then
+	rm $elisp
+fi