* Capture - add newline after new entry
@ 2012-01-08 15:58 Adam
2012-01-09 6:53 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Adam @ 2012-01-08 15:58 UTC (permalink / raw)
To: emacs-orgmode
I have a notes file which has a newline preceeding every entry.
* A
test
* B
test2
** B2
test3
Now I want to add other entries to my tree via org-capture. This is an
extract of my org-capture-templates
org-capture-templates
`(("t" "test"
entry (file+headline (concat org-directory "/notes.org") "B2")
"* %? %^t\n%i\n"
:kill-buffer))
Unfortunately the final newline is honoured. It is in the capture
buffer, but after I press C-c C-c, it is magically removed.
Is this a bug? How can I capture new items while preserving my outline structure?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Capture - add newline after new entry
2012-01-08 15:58 Capture - add newline after new entry Adam
@ 2012-01-09 6:53 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2012-01-09 6:53 UTC (permalink / raw)
To: Adam; +Cc: emacs-orgmode
On 8.1.2012, at 16:58, Adam wrote:
> I have a notes file which has a newline preceeding every entry.
>
> * A
> test
>
> * B
> test2
>
> ** B2
> test3
>
> Now I want to add other entries to my tree via org-capture. This is an
> extract of my org-capture-templates
>
> org-capture-templates
> `(("t" "test"
> entry (file+headline (concat org-directory "/notes.org") "B2")
> "* %? %^t\n%i\n"
> :kill-buffer))
>
> Unfortunately the final newline is honoured. It is in the capture
> buffer, but after I press C-c C-c, it is magically removed.
>
> Is this a bug? How can I capture new items while preserving my outline structure?
By reading the manual? Search for the :empty-lines property
in capture template setup.
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-09 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-08 15:58 Capture - add newline after new entry Adam
2012-01-09 6:53 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.