From edea7ecc182f1b4f5f439bb3f51bac7fcf909b9f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 27 Nov 2022 13:20:12 +0100 Subject: feat(tazjin/emacs): add german-qwerty input method I often have to type text in German, but on the German keyboard layout 'Y' and 'Z' are in the wrong place (why? who knows). To avoid this confusion, this defines an input method with the positions of those keys corrected. Change-Id: Ie446329d151cd3ed2bbeae1a34fc82d3c29f1d12 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7440 Autosubmit: tazjin Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/bindings.el | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/users/tazjin/emacs/config/bindings.el b/users/tazjin/emacs/config/bindings.el index 7865046d3d..1feb9faf81 100644 --- a/users/tazjin/emacs/config/bindings.el +++ b/users/tazjin/emacs/config/bindings.el @@ -66,4 +66,46 @@ ;; *NEVER* use intentionally. (unbind-key (kbd "C-x s") 'global-map) +;; German keyboard layout with Y and Z in the correct place. + +(quail-define-package + "german-qwerty" "German" "DE@" t + "German (Deutsch) input method with QWERTY keys" + nil t t t t nil nil nil nil nil t) + +;; 1! 2" 3§ 4$ 5% 6& 7/ 8( 9) 0= ß? [{ ]} +;; qQ wW eE rR tT yY uU iI oO pP üÜ +* +;; aA sS dD fF gG hH jJ kK lL öÖ äÄ #^ +;; zZ xX cC vV bB nN mM ,; .: -_ + +(quail-define-rules + ("-" ?ß) + ("=" ?\[) + ("`" ?\]) + ("[" ?ü) + ("]" ?+) + (";" ?ö) + ("'" ?ä) + ("\\" ?#) + ("/" ?-) + + ("@" ?\") + ("#" ?§) + ("^" ?&) + ("&" ?/) + ("*" ?\() + ("(" ?\)) + (")" ?=) + ("_" ??) + ("+" ?{) + ("~" ?}) + ("{" ?Ü) + ("}" ?*) + (":" ?Ö) + ("\"" ?Ä) + ("|" ?^) + ("<" ?\;) + (">" ?:) + ("?" ?_)) + (provide 'bindings) -- cgit 1.4.1