[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shortcut with CTRL-RET
From: |
Frederic Mayot |
Subject: |
Re: Shortcut with CTRL-RET |
Date: |
24 Jan 2007 12:03:40 -0800 |
User-agent: |
G2/1.0 |
I added this to my .emacs. Works perfectly.
Thanks.
(fset 'retline
[home return up tab])
(global-set-key [(control return)] 'retline)
On Jan 24, 12:00 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 24.01.2007 um 16:57 schrieb Frederic Mayot:
>
> > I would like to have a very convenient shortcut which exists on VS.
> > When pressing CTRL-RET, it adds a new line (nothing special) but it
> > places the cursor one line up and then indent. An example (||
> > represents the cursor)You could create a keyboard macro, save it, and then
> > bind it to C-RET.
>
> --
> Greetings
>
> Pete
>
> When in doubt, use brute force.
> -- Ken Thompson