Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one send S-RET to Emacs in a terminal?

In org-mode, pressing M-S-RET (meta-shift-return) will create a new TODO on a new line. This key sequence sends M-RET to emacs through my terminal. I've checked this with C-h c ESC-S-RET, which returns M-RET is undefined in the mini-buffer.

I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a RET sequence in the terminal keyboard preferences.

Any idea what's causing the missing SHIFT? Workarounds?

like image 639
jrhorn424 Avatar asked Aug 20 '10 06:08

jrhorn424


People also ask

Can emacs be used in terminal?

If you are working with a command line interface with no option to start GUI application, start Emacs directly in the terminal with emacs .


1 Answers

You can get Emacs to pretend that it got S-RET with C-x @ S RET (note uppercase S).

This also works for adding control, meta, alt, hyper or super modifiers; type C-x @ C-h for the list of bindings. The Modifier Keys section in the Emacs manual mentions this as well.

like image 86
legoscia Avatar answered Sep 28 '22 14:09

legoscia