feat(tazjin/emacs): Add Swedish keyboard layout
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
This commit is contained in:
parent
1c7e20ce30
commit
6bdc6c85cd
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue