[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [patch] extend org-meta-return to keywords
From: |
Rasmus |
Subject: |
[O] [patch] extend org-meta-return to keywords |
Date: |
Sat, 22 Nov 2014 02:23:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi,
Rasmus <address@hidden> writes:
> Something I have wanted for a while is to have M-RET work "as
> expected"(?) on keyword lines such as #+LATEX_HEADER, #+CAPTION etc.
> [...]
> Attached is a quick patch that works surprisingly well. I would work
> more on it if you guys agree this would be useful. It probably need
> much more work for corner-cases (any ideas what these are)?
Attached is a new version of the patch that will respect the variables
that also govern `org-insert-headline'. It's smarter and preserves the
layout better.
E.g. (where | is the cursor)
#+CAP|TION: foo
After M-RET it becomes
#+CAPTION: foo
#+CAPTION: |
A keyword-line is inserted above when one press M-RET between BOL and "#".
Keywords that an element can only have one of will not be inserted.
E.g.
#+NAME: foo|
After M-RET it becomes
#+NAME: foo
* |
Any opinions?
—Rasmus
--
I hear there's rumors on the, uh, Internets. . .
0001-org.el-Add-keyword-support-to-M-RET.patch
Description: Text Data
- [O] [Prelim. patch] extend org-meta-return to keywords, Rasmus, 2014/11/19
- [O] [patch] extend org-meta-return to keywords,
Rasmus <=
- Re: [O] [patch] extend org-meta-return to keywords, Nicolas Goaziou, 2014/11/22
- Re: [O] [patch] extend org-meta-return to keywords, Rasmus Pank Roulund, 2014/11/22
- Re: [O] [patch] extend org-meta-return to keywords, Rasmus, 2014/11/22
- Re: [O] [patch] extend org-meta-return to keywords, Thierry Banel, 2014/11/22
- Re: [O] [patch] extend org-meta-return to keywords, Nicolas Goaziou, 2014/11/22
- Re: [O] [patch] extend org-meta-return to keywords, Thierry Banel, 2014/11/23
- Re: [O] [patch] extend org-meta-return to keywords, Nicolas Goaziou, 2014/11/23
- Re: [O] [patch] extend org-meta-return to keywords, Rasmus, 2014/11/23
- Re: [O] [patch] extend org-meta-return to keywords, Nicolas Goaziou, 2014/11/23
- Re: [O] [patch] extend org-meta-return to keywords, Rasmus, 2014/11/23