aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/Makefile')
-rw-r--r--emacs/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/Makefile b/emacs/Makefile
index 23f2aa3..c22b5f4 100644
--- a/emacs/Makefile
+++ b/emacs/Makefile
@@ -25,8 +25,15 @@ install:
printf '\n' >> ~/.config/emacs/init.el && \
cat -- init-haskell-mode.el >> ~/.config/emacs/init.el; \
fi
+ if grep Ubuntu < /etc/lsb-release >/dev/null 2>/dev/null; then \
+ mkdir -p -- ~/.config/profile.d && \
+ test ! -d ~/.config/profile.d/emacs && \
+ ln -sf -- ~/.dotfiles/emacs/user-profile ~/.config/profile.d/emacs; \
+ fi
uninstall:
+ -unlink -- ~/.config/profile.d/emacs
+ -rmdir -- ~/.config/profile.d
-unlink -- ~/.config/emacs/init.el
-unlink -- ~/.emacs.d
-rmdir -- ~/.config/emacs