From: Alan Mackenzie <acm@muc.de>
To: Xavier Maillard <xma@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: M-<, M->, M-% ...
Date: Wed, 26 Mar 2008 21:27:45 +0000 [thread overview]
Message-ID: <20080326212745.GA2309@muc.de> (raw)
In-Reply-To: <200803260100.m2Q10ZkO005153@localhost.localdomain>
Hi, Xavier,
On Wed, Mar 26, 2008 at 02:00:38AM +0100, Xavier Maillard wrote:
> Hi,
> What is the best way to invoke the above mentionned keys in the
> linux console (I really mean the console, not a xterm) ?
There are two things you need to do. You need to enhance your keyboard
layout to generate distinct codes for these keys (dumpkeys and loadkeys
are your friends), and you need to tell Emacs how to interpret them.
A fully general method for getting this going was worked out a decade
ago by Kalle Niemitalo. I've been using it for many years. This scheme
allows you such key sequences as C-S-<up>, too.
The particular keys you're asking about, M-%, M-<, and M->, are
relatively simple on an English keyboard layout. I'm not sure how it
would be on a (?)French layout. Here is the bit of my file
boottime.kmap.gz that gives M-<
keycode 51 = comma less
alt keycode 51 = Meta_comma
shift alt keycode 51 = Meta_less <==============
control shift keycode 51 = F205 # ACM 21/12/03
The "string" F205 (for C-<), lower down in the file, looks like this:
string F205 = "\033[1><" # Control+Shift+, (C-<)
Two Emacs lisp files interpret the 7 new prefixes, like that in F205.
For example,
<esc>[1> is interpreted as <control>
<esc>[2> <alt>
<esc>[3> <control>+<alt>
<esc>[4> <shift>
.....
They put extra bindings in the function key map.
If you would like, I could send you all these files by private email,
though you will have to adapt my English keyboard layout to your own
one. It will take, perhaps, an evening or two to get working
satisfactorally.
> Regards
> Xavier
--
Alan Mackenzie (Nuremberg).
next prev parent reply other threads:[~2008-03-26 21:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 1:00 M-<, M->, M-% Xavier Maillard
2008-03-26 21:27 ` Alan Mackenzie [this message]
2008-03-31 18:59 ` Joel J. Adamson
[not found] <mailman.9420.1206495574.18990.help-gnu-emacs@gnu.org>
2008-03-26 5:28 ` Barry Margolin
2008-03-26 6:40 ` Andrea Vettorello
2008-03-27 1:00 ` Xavier Maillard
2008-03-27 9:18 ` Andrea Vettorello
2008-03-27 1:00 ` Xavier Maillard
2008-03-26 6:08 ` poppyer
2008-03-27 1:00 ` Xavier Maillard
[not found] ` <mailman.9486.1206581993.18990.help-gnu-emacs@gnu.org>
2008-03-27 2:42 ` poppyer
2008-03-27 2:52 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080326212745.GA2309@muc.de \
--to=acm@muc.de \
--cc=help-gnu-emacs@gnu.org \
--cc=xma@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).