summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-10 23:47:43 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-10 23:47:43 +0800
commit34130eb4f6bbc05f0bfe6102e44eb9762c957370 (patch)
treed1e0a07c2ebcaf272149436007dca4fc2218cc88
parent61377b97a1731cf9d4e115c2f00065167b68feaf (diff)
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.
-rw-r--r--basic.el4
1 files changed, 2 insertions, 2 deletions
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!