all repos — nixfiles @ 4b7fe9e0ad192e3959a9fccb4c5be45123259bea

System and user configuration, managed by nix and home-manager

Create emacs pre-hook to remove old elisp symlink
Alan Pearce alan@alanpearce.co.uk
Sun, 13 Apr 2014 12:06:08 +0100
commit

4b7fe9e0ad192e3959a9fccb4c5be45123259bea

parent

44cfeceab6b1dde2d1e2887131a747e7ae6e30a2

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