From 34130eb4f6bbc05f0bfe6102e44eb9762c957370 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 10 Dec 2021 23:47:43 +0800 Subject: basic: capslock becomes hyper * basic.el (input-decode-map, key-translation-map): I was used to press fn key as the hyper modifier. But after an update of the operating system, for some reason the fn key activates some shortcuts combined with some other keys. For example, fn+a activates the "dock" and fn+n activates a "control center" of sorts. I use H-a for org-agenda and H-n for reading novels. Both are frequently used key-bindings. The most unfortunate is that I cannot find a way to deactivate these shortcuts. So I am forced to find other key-bindings. It turns out that I didn't use the capslock for any useful bindings yet, thus I guess this is a perfect fit. --- basic.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic.el') diff --git a/basic.el b/basic.el index 139e666..beb08dc 100644 --- a/basic.el +++ b/basic.el @@ -458,8 +458,8 @@ window horizontally." ;;; Escape triggers super (define-key input-decode-map (vector 27) nil) -(define-key input-decode-map (vector 27) #'event-apply-meta-modifier) -(define-key key-translation-map (vector 27) #'event-apply-meta-modifier) +(define-key input-decode-map (vector 27) #'event-apply-hyper-modifier) +(define-key key-translation-map (vector 27) #'event-apply-hyper-modifier) ;;; Don't ask me to confirm! -- cgit v1.2.3-18-g5258