diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-26 09:30:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-26 09:30:42 +0200 |
commit | d84e8a184d14f1ff8fbb1cb26afcf79483d3b5ea (patch) | |
tree | b02975c7ae36aa582a67a417925b419d78f77381 | |
parent | Add paths to profile (diff) | |
download | dotfiles-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>
-rw-r--r-- | emacs/Makefile | 7 | ||||
-rw-r--r-- | emacs/user-profile | 4 |
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 |