From d84e8a184d14f1ff8fbb1cb26afcf79483d3b5ea Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Jun 2021 09:30:42 +0200 Subject: Add dead key fix for emacs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- emacs/Makefile | 7 +++++++ emacs/user-profile | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 emacs/user-profile (limited to 'emacs') 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 -- cgit v1.2.3-70-g09d2