catweazle9 / emacs-everywhere

AutoHotkey script to provide basic Emacs key bindings for Windows
39 stars 14 forks source link

swap caps lock and ctrl #5

Open drewwells opened 4 years ago

drewwells commented 4 years ago

It's pretty common to use caps lock as a control. However, simply swapping them makes the entire invalid since ^ is now caps lock. Do you have any ideas on how to tell autohotkeys to use caps lock as ^ in the script?

catweazle9 commented 4 years ago

I don't swap them but just set capslock to (also) be control, via the Windows registry, e.g., something like this: https://superuser.com/questions/949385/map-capslock-to-control-in-windows-10

In other words, I remove my capslock key and have never missed it.

jayrajput commented 2 years ago

I used windows power toy keyboard manager to map caps lock to control.

jayrajput commented 2 years ago

Although looks like this can be used to map CapsLock to Ctrl in AHK

CapsLock::Ctrl