From 6bdc6c85cdf6b1e8ee99a44f0c1733d97f0abfa2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 24 Sep 2020 12:15:11 +0100 Subject: feat(tazjin/emacs): Add Swedish keyboard layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's a little easier to use this for Swedish than to compose the ä and ö in the Norwegian layout. Additionally - to avoid problems when switching to keyboards that have no hardware remapping - re-applies the caps:super flip on every layout switch. Change-Id: I1b2c55761514745291d0eeb1502fa503f84f8aa1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2001 Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/desktop.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el index b099b573aeb3..38da8f75bc2b 100644 --- a/users/tazjin/emacs/config/desktop.el +++ b/users/tazjin/emacs/config/desktop.el @@ -44,6 +44,7 @@ "Set the current X keyboard layout." (shell-command (format "setxkbmap %s" layout)) + (shell-command "setxkbmap -option caps:super") (message "Set X11 keyboard layout to '%s'" layout)) (defun create-window-name () @@ -160,6 +161,7 @@ (bind-xkb "de" "k d") (bind-xkb "no" "k n") (bind-xkb "ru" "k r") +(bind-xkb "se" "k s") ;; These are commented out because Emacs no longer starts (??) if ;; they're set at launch. -- cgit 1.4.1