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

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

Re: key binding doesn't work under consle mode


From: Kevin Rodgers
Subject: Re: key binding doesn't work under consle mode
Date: Tue, 28 Mar 2006 11:21:39 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

kid kid wrote:
   I have problem using Emacs. I use some key binding defined in my
dot emacs file:

(global-set-key "\C-h" 'delete-backward-char)
(define-key global-map "\M-h" 'backward-kill-word)
(define-key global-map [C-return] 'set-mark-command)

It works perfectly in emacs, but when I run "emacs -nw",
 I can type C-h to backword delete a char, type M-h to
 backward kill a word, but I can't use C-return to set mark.
 However, I use M-x describe-function <return> set-mark-command,
it says "It is bound to C-@, <C-return>, C-SPC.". But when I
type C-return, it just start a new line. I tried in the rxvt terminal
simulator or in real console(use Alt+Ctrl+F1), it doesn't work.

I suspect rxvt and the console send the same key for RET and C-RET.
You can confirm that with `C-h k RET' then `C-h l' and `C-h k C-RET'
then `C-h l'.

--
Kevin Rodgers





reply via email to

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