emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [Feature Request] [ENTER] or [C-Alt ENTER] while on headline skip over drawers automatically
Date: Sun, 12 Apr 2015 22:51:15 +0200	[thread overview]
Message-ID: <87pp79nk8s.fsf@gmx.us> (raw)
In-Reply-To: 87fv85xf3t.fsf@nicolasgoaziou.fr

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Rasmus <rasmus@gmx.us> writes:
>
>> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>>
>>> Eventually, we could introduce a `org-return-hook' where an user could
>>> add, e.g.,
>>>
>>>   (lambda () (when (org-at-heading-p) (org-end-of-meta-data) (insert
>>>   "\n")))
>>>
>>> Opinions?
>>
>> +1.
>>
>> I'd also like a hook on C-RET.
>
> Actually, a hook isn't even needed if you use `advice-add'.

There's also org-metareturn-hook.

I had a patch a while ago adding support for M-RET on keywords.  This
could be pushed together with a documentation on how to use it with
add-function (is nadvice.el too new for us to assume when writing
documentation?) or the mentioned hook.

—Rasmus

-- 
However beautiful the theory, you should occasionally look at the evidence

  reply	other threads:[~2015-04-12 20:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 16:16 [Feature Request] [ENTER] or [C-Alt ENTER] while on headline skip over drawers automatically Subhan Michael Tindall
2015-04-09 16:21 ` Marcin Borkowski
2015-04-10 16:19 ` Nicolas Goaziou
2015-04-10 22:06   ` Rasmus
2015-04-12 20:32     ` Nicolas Goaziou
2015-04-12 20:51       ` Rasmus [this message]
2015-04-12 22:15         ` Nicolas Goaziou

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=87pp79nk8s.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).