[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repeatable vs. non-repeatable commands
From: |
Emanuel Berg |
Subject: |
Re: repeatable vs. non-repeatable commands |
Date: |
Sat, 24 Jun 2017 12:22:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Michael Heerdegen wrote:
> C-A [...] Since these bindings are not
> available in a console
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")))
--
underground experts united
http://user.it.uu.se/~embe8573