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

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

Re: rebound C-m


From: Kevin Rodgers
Subject: Re: rebound C-m
Date: Thu, 13 Jun 2013 23:01:07 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

On 6/13/13 4:49 AM, Luca Ferrari wrote:
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.

I don't know why C-m's default binding makes it necessary to undo that binding,
but this works for me:

(define-prefix-command 'my-return)
(global-set-key "\C-m" 'my-return)
(global-set-key "\C-mg" 'foo-bar)

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

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