[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [Feature Request] [ENTER] or [C-Alt ENTER] while on headline ski
From: |
Rasmus |
Subject: |
Re: [O] [Feature Request] [ENTER] or [C-Alt ENTER] while on headline skip over drawers automatically |
Date: |
Sun, 12 Apr 2015 22:51:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Nicolas Goaziou <address@hidden> writes:
> Rasmus <address@hidden> writes:
>
>> Nicolas Goaziou <address@hidden> 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