help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOSx (10.15) and remap caps lock to hyper


From: Uwe Brauer
Subject: Re: MacOSx (10.15) and remap caps lock to hyper
Date: Sun, 21 Mar 2021 09:59:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>> "EBvUlftGEte" == Emanuel Berg via Users list for the GNU Emacs text editor 
>>> <help-gnu-emacs@gnu.org> writes:

   >>> Meta, super, hyper, control 
   >>> 
   >>> Is what I want
   >> 
   >> What is super

   > Ah, that's 125 in /dev/console - the one I use as a compose
   > key.

Well 

I am on Ubuntu 16.04, using a thinkpad X1.


Here is a part of my Xmodmap

keycode 37 = Hyper_L NoSymbol Hyper_L
keycode  64 = Alt_L Meta_L Alt_L Meta_L
keycode  66 = Control_L NoSymbol Control_L
keycode 133 = Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R


clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5


add    Control = Control_L
add    Mod1    = Meta_L
add    Mod3    = Super_L
add    Mod4    = Hyper_L
add    Mod5    = Num_Lock


And then I can enjoy stuff like

(global-set-key [(super f3)]   'delete-frame)
(global-set-key [(hyper f3)] 'ediff-copy-to-register-B)


Etc

This is what I want for my mac, since the mac has, incomprehensibly,
less keys than the Thinkpad.

Did I now explain myself?

Uwe 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]