emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aankhen <aankhen@gmail.com>
To: "Radosław Grzanka" <radoslawg@gmail.com>,
	"Org-mode ml" <emacs-orgmode@gnu.org>
Subject: Re: org-remember and lists
Date: Fri, 25 Mar 2011 14:42:07 +0530	[thread overview]
Message-ID: <AANLkTinzWf04nh6wQacQEanTYa96Jq+9P3DWZOOCuTg_@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikYtG5kzaRSXcfAxorF7Xk3zVK-NuaPj0wbDarH@mail.gmail.com>

Hullo,

On Fri, Mar 25, 2011 at 02:07, Radosław Grzanka <radoslawg@gmail.com> wrote:
>  I'm trying to tweak remember templates to follow my needs but I
> fail. I want to do template for my shopping list entries like this:
>
> (setq org-remember-templates (list
>                               (list "shopping" ?s "- [ ] %?\n" (concat org-directory
> "notes.org") "Shopping List")
> ))
>
> However after saving, there is header prepended to this like:
>
> ** Thu Mar 24 21:32:49 2011 (- [ ] apples)
>   - [ ] apples
>
> I don't want this - I already have heading with all the info I need "*
> Shopping List". ;) I don't know how to accomplish that.
>
> Any help?

I’m not sure what the problem is here, but ‘org-capture’ is preferred
over remember these days; maybe that would work better for you:

,----
| (require 'org-capture)
| (global-set-key (kbd "C-M-z") 'org-capture) ; use any key you like
| (setq org-capture-templates `(("s" "Shopping" checkitem
|                                (file+headline ,(concat org-directory
"notes.org")
|                                               "Shopping List"))))
`----

Take a look at the manual for more.[1] You may need to update your Org
installation and add the ‘contrib’ directory to ‘load-path’ in order
to use ‘org-capture’.

Hope this helps,
Aankhen

[1]: http://orgmode.org/org.html#Capture

  reply	other threads:[~2011-03-25  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 20:37 org-remember and lists Radosław Grzanka
2011-03-25  9:12 ` Aankhen [this message]
2011-03-25  9:13   ` Radosław Grzanka

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=AANLkTinzWf04nh6wQacQEanTYa96Jq+9P3DWZOOCuTg_@mail.gmail.com \
    --to=aankhen@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=radoslawg@gmail.com \
    /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).