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

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

Re: repeatable vs. non-repeatable commands


From: Michael Heerdegen
Subject: Re: repeatable vs. non-repeatable commands
Date: Sun, 25 Jun 2017 06:59:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Emanuel Berg <moasen@zoho.com> writes:

> In a way they are, with the familiar workaround. I suppose it doesn't
> count as user configurable tho. Well, it depends who the user is...
>
> In /etc/console-setup/remap.inc
>
>     # C-a and C-A
>     # a/A is 30; use showkey(1)
>     # C-a already works
>     # use the ""Private Use Area": U+E000 up to and including U+F8FF
>     control shift keycode 30 = U+E000
>
> then with 'sudo' or possibly first 'chmod +s /bin/loadkeys'
>
>     loadkeys -q -c -s /etc/console-setup/remap.inc
>
> in Emacs
>
>     (define-key input-decode-map [?\uE000] [C-A])
>     (global-set-key [C-A]  (lambda () (interactive) (message "A")))
>     (global-set-key "\C-a" (lambda () (interactive) (message "a")))

Interesting!  I'm not really a console user myself, but it's good to
have your explanation in this thread.


Thanks,

Michael.



reply via email to

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