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

Re: Ctrl+Ret in Terminals



On Wed, Jul 01, 2009 at 10:51:36AM +0100, James Youngman wrote:
> > One of my friends uses org-mode in GNU Emacs, and loves it. Now, the
> > issue is that one of the functions in org-mode is bound (by default)
> > to C-RET (Ctrl+Enter), which works fine on the X11 Emacs.
> 
> I just tried this in GNU Emacs 22.2.1 and C-return is not bound to
> anything.   Anyway, it's likely there is another keybinding for the
> command.   You find such things like this:

Well, in org-mode, it seems to be bound to something:

http://orgmode.org/manual/Structure-editing.html

> Press
>  C-h k
> to find out what a random key does (by pressing it).    Let's choose
> M-RET.  Emacs says:
> 
> <M-return> runs the command org-meta-return
>   which is an interactive compiled Lisp function in `org.el'.
> It is bound to <M-return>.
> (org-meta-return &optional arg)
> 
> So, now we could use "C-h w" to find out what else that is bound to,
> or use local-set-key to additionally bind that function to some other
> key too.

I am aware of this; I wanted to know if it was a "feature" of the
terminal which could make C-RET to be recognized before rebinding the
keys.

Thanks!

Kumar
-- 
Kumar Appaiah


Reply to: