2010/2/19 Stephan Schmitt <drmab...@cs.tu-berlin.de>

> Hi Łukasz,
>
> > Stephan Schmitt <drmab...@cs.tu-berlin.de> 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))

--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
>
_______________________________________________
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

Reply via email to