aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-26 09:30:42 +0200
committerMattias Andrée <maandree@kth.se>2021-06-26 09:30:42 +0200
commitd84e8a184d14f1ff8fbb1cb26afcf79483d3b5ea (patch)
treeb02975c7ae36aa582a67a417925b419d78f77381 /emacs/Makefile
parentAdd paths to profile (diff)
downloaddotfiles-d84e8a184d14f1ff8fbb1cb26afcf79483d3b5ea.tar.gz
dotfiles-d84e8a184d14f1ff8fbb1cb26afcf79483d3b5ea.tar.bz2
dotfiles-d84e8a184d14f1ff8fbb1cb26afcf79483d3b5ea.tar.xz
Add dead key fix for emacs
Signed-off-by: Mattias Andrée <maandree@kth.se>
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