Create emacs pre-hook to remove old elisp symlink
Alan Pearce alan@alanpearce.co.uk
Sun, 13 Apr 2014 12:06:08 +0100
1 files changed, 8 insertions(+), 0 deletions(-)
jump to
A 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