emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Remember does not insert a blank line before new headings
@ 2010-06-21 10:24 Sébastien Vauban
  2010-06-21 10:26 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Sébastien Vauban @ 2010-06-21 10:24 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

Whenever collecting tasks (for example, but not limited to that), I would like
one blank line to be inserted before any heading.

This is a sample file of how I like to see things (always thinking at other
colleagues who would read my Org file from vi or even worse editors):

--8<---------------cut here---------------start------------->8---
* Tasks

** TODO Make highlight of #hexa colors in Emacs work
   [2010-05-27 Thu 14:40]

   I have sample code almost working. Try to customize it.

** TODO Search for flights
   SCHEDULED: <2010-06-22 Tue>
   :PROPERTIES:
   :Effort:   0:10
   :END: 
   [2010-06-07 Mon 15:00]

** TODO Work on the rest
   [2010-06-21 Mon 12:15]
--8<---------------cut here---------------end--------------->8---

My remember template was the following:

--8<---------------cut here---------------start------------->8---
(setq org-remember-templates
      '(
        ("Task" ?t
         "* TODO %?\n  %U\n  %i"    ; include a date tag showing when it
                                    ; was added to the TODO file
         nil                        ; refile.org
         "Tasks")))
--8<---------------cut here---------------end--------------->8---

But every inserted task comes "glue'd" to the previous item:

--8<---------------cut here---------------start------------->8---
* Tasks

[...]

** TODO Work on the rest
   [2010-06-21 Mon 12:15]
** TODO Added task (via remember)
   [2010-06-21 Mon 12:20]
--8<---------------cut here---------------end--------------->8---

Changing my template to this:

--8<---------------cut here---------------start------------->8---
(setq org-remember-templates
      '(
        ("Task" ?t
         "\n\n\n* TODO %?\n  %U\n  %i"
         nil                        ; refile.org
         "Tasks")))
--8<---------------cut here---------------end--------------->8---

doesn't change anything to that... Well, I see extra line spaces in the
remember *buffer*, but they're not inserted when filed (`C-c C-c').

How can we get this behavior?  Am I missing some variable?

For your information, I also have:

--8<---------------cut here---------------start------------->8---
(setq org-blank-before-new-entry '((heading . t) (plain-list-item . auto)))
--8<---------------cut here---------------end--------------->8---

but that does not what *I* would expect, inserting a blank before any new
heading.

Any help?

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-21 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 10:24 Remember does not insert a blank line before new headings Sébastien Vauban
2010-06-21 10:26 ` Carsten Dominik
2010-06-21 10:32   ` Sébastien Vauban

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