aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs/Makefile7
-rw-r--r--emacs/user-profile4
2 files changed, 11 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
diff --git a/emacs/user-profile b/emacs/user-profile
new file mode 100644
index 0000000..714028b
--- /dev/null
+++ b/emacs/user-profile
@@ -0,0 +1,4 @@
+# -*- shell-script -*-
+
+# Enable dead keys in Emacs GUI
+export XMODIFIERS=@im=none