emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stephan Schmitt <drmabuse@cs.tu-berlin.de>
To: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Shortcut for adding text item?
Date: Fri, 19 Feb 2010 10:53:56 +0100	[thread overview]
Message-ID: <4B7E5FB4.40402@cs.tu-berlin.de> (raw)
In-Reply-To: <87635up2h8.fsf@dasa3.iem.pw.edu.pl>

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

Greetings,
	Stephan

  reply	other threads:[~2010-02-19  9:54 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 [this message]
2010-02-19 22:11       ` Nathan Neff

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=4B7E5FB4.40402@cs.tu-berlin.de \
    --to=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).