[Top][All Lists]

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

Re: [Orgmode] Re: Shortcut for adding text item?

From: Nathan Neff
Subject: Re: [Orgmode] Re: Shortcut for adding text item?
Date: Fri, 19 Feb 2010 16:11:03 -0600

2010/2/19 Stephan Schmitt <address@hidden>
Hi Łukasz,

> Stephan Schmitt <address@hidden> writes:
>> Also sprach Nathan Neff:
>>> For example, I have a headline, with the cursor at <cursor> position:
>>> * Some<cursor>thing
>>> 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 Łukasz 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))


Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]