From 4b7fe9e0ad192e3959a9fccb4c5be45123259bea Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 13 Apr 2014 12:06:08 +0100 Subject: Create emacs pre-hook to remove old elisp symlink --- hooks/pre-up/emacs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hooks/pre-up/emacs (limited to 'hooks/pre-up') 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 -- cgit 1.4.1