From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: rebound C-m
Date: Thu, 13 Jun 2013 15:42:49 +0200 [thread overview]
Message-ID: <874nd2t9d2.fsf@VLAN-3434.student.uu.se> (raw)
In-Reply-To: mailman.1540.1371120584.22516.help-gnu-emacs@gnu.org
Luca Ferrari <fluca1978@infinito.it> writes:
> Hi all,
>
> is it possible to rebind C-m (RET)? Because I've tried to assign
> a global key sequence "C-m g" but I got an error saying that I
> cannot bind RET, and hence the doubt.
Try:
control keycode 50 = U+010F
in /etc/console-setup/remap.inc (50 = 'm', get with `showkey';
Unicode code handle to be used later).
then
lkeys () {
sudo loadkeys --clearcompose --clearstrings \
/etc/console-setup/remap.inc > /dev/null
}
in ~/.zshrc (or .bashrc, etc.)
and
loadkeys /etc/console-setup/remap.inc > /dev/null
in /etc/rc.local (so won't have to give superuser password - or
any equivalent file if this is Debian local).
Last
(defun init-shortcut-c-m-b ()
"Call this with M-x, then see if it works.
`forward-char' is just for testing.
The Unicode code is just a handle."
(interactive)
(define-key input-decode-map [?\u010F] [control meta])
(local-set-key (kbd "<control> <meta> b") 'forward-char) )
in .emacs -
It works for me in a Linux tty, but I might have forgot to mention
something. There is another guy here who can give you a better
answer.
> Thanks,
> Luca
My pleasure,
Chrono
--
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573
next parent reply other threads:[~2013-06-13 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1540.1371120584.22516.help-gnu-emacs@gnu.org>
2013-06-13 13:42 ` Emanuel Berg [this message]
2013-06-13 15:22 ` rebound C-m Stefan Monnier
2013-06-13 10:49 Luca Ferrari
2013-06-14 5:01 ` Kevin Rodgers
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=874nd2t9d2.fsf@VLAN-3434.student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@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).