[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: key binding doesn't work under consle mode
From: |
Stefan Monnier |
Subject: |
Re: key binding doesn't work under consle mode |
Date: |
Wed, 29 Mar 2006 00:25:24 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> (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)
Most text terminals have no such thing as a `return' key, only a RET key
which is really just another name for C-m. So when you think you hit
C-return, Emacs really receives "C-C-m" aka "C-m".
Stefan