Re: How swap Caps lock with Control for Emacs

1 Antwort [Letzter Beitrag]
Zelphir Kaltstahl
Offline
Beigetreten: 11/11/2019

Hi!

I know you asked for Emacs specifically, but I want to mention this, in
case you could make use of it system wide:

I use the following in my ~/.profile file:

#############
# SWAP KEYS #
#############
setxkbmap -layout de -option ctrl:nocaps
setxkbmap -layout de -option ctrl:swapcaps

I don't remember having to install anything extra, but I might have
forgotten.

Regards,
Zelphir

On 24.06.20 12:00, name at domain wrote:
> I installed Trisquel Mini and it comes with LXDE and not MATE. I checked but
> no such options is availble in LXDE in graphically.

Red Starfish
Offline
Beigetreten: 06/24/2020

On Wed, 24 Jun 2020 23:01:38 +0200
Zelphir Kaltstahl <name at domain> wrote:
> ...
> I know you asked for Emacs specifically, but I want to mention this, in
> case you could make use of it system wide:
> ....
> I use the following in my ~/.profile file:
> .....
> setxkbmap -layout de -option ctrl:nocaps
> setxkbmap -layout de -option ctrl:swapcaps
> ...

Wow, Thank you very much. It works! I modified the command a little
as I am using the English US keyboard. So I used the following lines:

setxkbmap -option ctrl:nocaps
setxkbmap -option ctrl:swapcaps

And then sourced the file `source ~/.profile`. The effect was
immediate. Thanks again.

--
Starfish <name at domain>