How swap Caps lock with Control for Emacs
- Login o registrati per inviare commenti
I want to swap the Control key with Caps Lock key in Trisquel 8.0 mini. I followed this Emacs wiki page (https://www.emacswiki.org/emacs/MovingTheCtrlKey). According to it inside /etc/defaults/keyboards XKBOPTIONS="ctrl:swapcaps" and ran the following dpkg-reconfigure command as mentioned. But it didn't work. I also tried to logout/login and reboot but it didn't work either. Do you have any solution?
name at domain writes:
> I want to swap the Control key with Caps Lock key in Trisquel 8.0
> mini. I followed this Emacs wiki page
> (https://www.emacswiki.org/emacs/MovingTheCtrlKey). According to it
> inside /etc/defaults/keyboards XKBOPTIONS="ctrl:swapcaps" and ran the
> following dpkg-reconfigure command as mentioned. But it didn't work. I
> also tried to logout/login and reboot but it didn't work either. Do
> you have any solution?
>
You can use ~/.Xmodmap. For instance, my ~/.Xmodmap:
"""
remove Lock = Caps_Lock
clear lock
add Mod4 = Caps_Lock
keysym Caps_Lock = Super_L Caps_Lock
"""
I use that because I run Emacs inside awesomewm.
--
"Cut your own wood and it will warm you twice"
In the "Layouts" tab of the "Keyboard Preferences", accessible from MATE's Control Center, you can tweak the keyboard layout after clicking on the "Options..." button. Under "Ctrl key position", "Swap Ctrl and Caps Lock" can be checked.
I installed Trisquel Mini and it comes with LXDE and not MATE. I checked but no such options is availble in LXDE in graphically.
Sorry: I should have paid more attention when I read your post.
- Login o registrati per inviare commenti