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

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

Re: color of parentheses, and face-foregrounds ?


From: Alan Mackenzie
Subject: Re: color of parentheses, and face-foregrounds ?
Date: Fri, 9 Sep 2005 07:35:38 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Mads Jensen <spam@raptus.dk> wrote on 08 Sep 2005 21:20:54 +0200:
> Hi NG,

> I am currently using the console version of EMACS for a change. There's
> something that bugs a little, ....

> One thing more, I have C-<home> C-<end> bound to beginning-of-buffer and
> end-of-buffer respectively, but when I use those keybindings, I jump to the
> beginning and end of the line.

Probably you're not "holding the control key hard enough".  And in a
console, that can be hard indeed.  If by "console", you mean the 80 x 25
screen on Linux, outside of X, then the keyboard driver isn't set up to
distinguish between C-<home> and <home> - they both produce the same
sequence of bytes, namely   ESC [ 1 ~ .   You can check this by typing
the key, and then typing C-h l (`view-lossage') to get a display of the
raw codes that Emacs saw.  The same applies to many, many other key
combinations, including arrow keys with any modifier keys.  

The solution is to enhance the keyboard layout to generate distinct codes
for distinct keys, and to tell Emacs about them.  That's what the
`function-keymap' is there for.  A complete scheme was worked out many
years ago by Kalle Niemitalo and it works very well indeed.  If you're
running Linux and you're interested, I could email you all the stuff - it
would take a few hours study and work to get it running.

[ .... ]

> Mads Jensen

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").



reply via email to

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