Create emacs pre-hook to remove old elisp symlink
1 file 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