From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Re: Shortcut for adding text item? Date: Fri, 19 Feb 2010 16:11:03 -0600 Message-ID: <211769421002191411r14ef3e52j8689f0b0c42405ca@mail.gmail.com> References: <211769421002181028n72f53fet9848b20cd544f95d@mail.gmail.com> <4B7D8DF6.3050204@cs.tu-berlin.de> <87635up2h8.fsf@dasa3.iem.pw.edu.pl> <4B7E5FB4.40402@cs.tu-berlin.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2123557943==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nib41-0000hw-2i for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 17:11:09 -0500 Received: from [140.186.70.92] (port=37675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nib40-0000h9-2T for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 17:11:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nib3z-0000cS-12 for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 17:11:07 -0500 Received: from mail-bw0-f219.google.com ([209.85.218.219]:57063) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nib3y-0000cC-Mk for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 17:11:06 -0500 Received: by bwz19 with SMTP id 19so475119bwz.26 for ; Fri, 19 Feb 2010 14:11:04 -0800 (PST) In-Reply-To: <4B7E5FB4.40402@cs.tu-berlin.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stephan Schmitt Cc: =?ISO-8859-2?Q?=A3ukasz_Stelmach?= , emacs-orgmode@gnu.org --===============2123557943== Content-Type: multipart/alternative; boundary=00032555a3160a4ef7047ffb5c44 --00032555a3160a4ef7047ffb5c44 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/2/19 Stephan Schmitt > Hi =C5=81ukasz, > > > Stephan Schmitt writes: > > > >> Also sprach Nathan Neff: > >>> For example, I have a headline, with the cursor at position: > >>> > >>> * Something > >>> > >>> And I want to add a text line under the heading, with proper > indentation. > >>> > >>> Currently, I press Ctrl-E, then Return, but I'd like to have a > >>> shortcut like M-j or something like that. > >> put this in your dotemacs file: > >> > >> (eval-after-load "org" > >> '(org-defkey org-mode-map (kbd "M-j") > >> (lambda () (interactive) (end-of-line) > (org-return-indent)))) > >> > > Also sprach =C5=81ukasz Stelmach: > > > > How about unfolding subtree? > > > > good point... > > (org-defkey org-mode-map (kbd "M-j") > '(lambda () (interactive) > (org-show-subtree) (end-of-line) (org-return-indent))) > > Thanks a million. I'm getting the hang of the macro-style stuff (e.g. using (end-of-line) followed by (org-return-indent)) --Nate > Greetings, > Stephan > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --00032555a3160a4ef7047ffb5c44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2010/2/19 Stephan Schmitt <drmabuse@cs.tu-berlin.d= e>
Hi =C5=81ukasz,

> Stephan Schmitt <drmabu= se@cs.tu-berlin.de> writes:
>
>> Also sprach Nathan Neff:
>>> For example, I have a headline, with the cursor at <cursor&= gt; position:
>>>
>>> * Some<cursor>thing
>>>
>>> And I want to add a text line under the heading, with proper i= ndentation.
>>>
>>> Currently, I press Ctrl-E, then Return, but I'd like to ha= ve a
>>> shortcut like M-j or something like that.
>> put this in your dotemacs file:
>>
>> (eval-after-load "org"
>> =C2=A0 '(org-defkey org-mode-map (kbd "M-j")
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (lambda () (interactive)= (end-of-line) (org-return-indent))))
>>

Also sprach =C5=81ukasz Stelmach:
>
> How about unfolding subtree?
>

good point...

(org-defkey org-mode-map (kbd "M-j")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'(lambda () (interactive)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-show-subtree) = (end-of-line) (org-return-indent)))


Thanks a million.=C2=A0 I'm getting the hang = of the macro-style stuff
=C2=A0(e.g. using (end-of-line) followed by=C2= =A0 (org-return-indent))

--Nate
=C2=A0
Greetings,
=C2=A0 =C2=A0 =C2=A0 =C2=A0Stephan


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--00032555a3160a4ef7047ffb5c44-- --===============2123557943== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2123557943==--