diff options
author | Alan Pearce | 2014-04-13 12:06:08 +0100 |
---|---|---|
committer | Alan Pearce | 2014-04-13 12:06:08 +0100 |
commit | 4b7fe9e0ad192e3959a9fccb4c5be45123259bea (patch) | |
tree | 2405fa50ea63619034c35b8ce8b2cc5595bf60af /hooks | |
parent | 44cfeceab6b1dde2d1e2887131a747e7ae6e30a2 (diff) | |
download | nixfiles-4b7fe9e0ad192e3959a9fccb4c5be45123259bea.tar.lz nixfiles-4b7fe9e0ad192e3959a9fccb4c5be45123259bea.tar.zst nixfiles-4b7fe9e0ad192e3959a9fccb4c5be45123259bea.zip |
Create emacs pre-hook to remove old elisp symlink
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/pre-up/emacs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/pre-up/emacs b/hooks/pre-up/emacs new file mode 100755 index 00000000..01ca2793 --- /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 |