about summary refs log tree commit diff
path: root/users/tazjin
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-09-24T11·15+0100
committertazjin <mail@tazj.in>2020-09-24T11·35+0000
commit6bdc6c85cdf6b1e8ee99a44f0c1733d97f0abfa2 (patch)
tree9d3675ff45896adce4409f26a38bddccac34c241 /users/tazjin
parent1c7e20ce303f8aa2983d5e21f677360317112b22 (diff)
feat(tazjin/emacs): Add Swedish keyboard layout r/1816
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 <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin')
-rw-r--r--users/tazjin/emacs/config/desktop.el2
1 files changed, 2 insertions, 0 deletions
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.