From: "David Neu" <david@davidneu.com>
To: emacs-orgmode@gnu.org
Subject: Setting org-archive-location
Date: Sat, 6 Dec 2008 15:05:26 -0500 [thread overview]
Message-ID: <e0b44a890812061205r3becb9bak37b6504bfe770ffa@mail.gmail.com> (raw)
Hi,
Is there any way to get the second part of the org-archive-location
variable, i.e. the part after the colon that corresponds to headline,
to be the headline under which an subtree lies. For example, consider
* Work
** Finsh DBMS
*** TODO Define schema
*** TODO Write code
** Implement API
*** TODO Develop prototype
* Home
** Clean garage
*** TODO Buy shelves
*** TODO Install shelves
For "Finish DBMS", and "Implement API", you might want to have
(setq org-archive-location (format-time-string
"%%s-%Y-%m-archive.org::* Work" (current-time)))
but for "Clean garage", you would then want
(setq org-archive-location (format-time-string
"%%s-%Y-%m-archive.org::* Home" (current-time)))
Is there any way to achieve this behavior?
Many thanks!
Cheers,
David
next reply other threads:[~2008-12-06 20:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-06 20:05 David Neu [this message]
2008-12-06 20:28 ` Setting org-archive-location Bernt Hansen
2008-12-06 20:34 ` David Neu
2008-12-07 4:02 ` Bernt Hansen
2008-12-07 14:28 ` Matthew Lundin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0b44a890812061205r3becb9bak37b6504bfe770ffa@mail.gmail.com \
--to=david@davidneu.com \
--cc=emacs-orgmode@gnu.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 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.