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

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

Re: rebound C-m


From: Emanuel Berg
Subject: Re: rebound C-m
Date: Thu, 13 Jun 2013 15:42:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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


reply via email to

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