From: Nathan Neff <nathan.neff@gmail.com>
To: Stephan Schmitt <drmabuse@cs.tu-berlin.de>
Cc: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>, emacs-orgmode@gnu.org
Subject: Re: Re: Shortcut for adding text item?
Date: Fri, 19 Feb 2010 16:11:03 -0600 [thread overview]
Message-ID: <211769421002191411r14ef3e52j8689f0b0c42405ca@mail.gmail.com> (raw)
In-Reply-To: <4B7E5FB4.40402@cs.tu-berlin.de>
[-- Attachment #1.1: Type: text/plain, Size: 1364 bytes --]
2010/2/19 Stephan Schmitt <drmabuse@cs.tu-berlin.de>
> Hi Łukasz,
>
> > Stephan Schmitt <drmabuse@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
>
[-- Attachment #1.2: Type: text/html, Size: 2385 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
prev parent reply other threads:[~2010-02-19 22:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-18 18:28 Shortcut for adding text item? Nathan Neff
2010-02-18 18:59 ` Stephan Schmitt
2010-02-18 19:26 ` Raffi R
2010-02-18 23:07 ` Łukasz Stelmach
2010-02-19 9:53 ` Stephan Schmitt
2010-02-19 22:11 ` Nathan Neff [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=211769421002191411r14ef3e52j8689f0b0c42405ca@mail.gmail.com \
--to=nathan.neff@gmail.com \
--cc=drmabuse@cs.tu-berlin.de \
--cc=emacs-orgmode@gnu.org \
--cc=lukasz.stelmach@iem.pw.edu.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).