emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Remember does not insert a blank line before new headings
Date: Mon, 21 Jun 2010 12:24:13 +0200	[thread overview]
Message-ID: <8739wg7kfm.fsf@mundaneum.com> (raw)

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

             reply	other threads:[~2010-06-21 10:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-21 10:24 Sébastien Vauban [this message]
2010-06-21 10:26 ` Remember does not insert a blank line before new headings Carsten Dominik
2010-06-21 10:32   ` Sébastien Vauban

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=8739wg7kfm.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).