From: Bernt Hansen <bernt@norang.ca>
To: David Neu <david@davidneu.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Setting org-archive-location
Date: Sat, 06 Dec 2008 15:28:24 -0500 [thread overview]
Message-ID: <87prk5rqtz.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <e0b44a890812061205r3becb9bak37b6504bfe770ffa@mail.gmail.com> (David Neu's message of "Sat\, 6 Dec 2008 15\:05\:26 -0500")
"David Neu" <david@davidneu.com> writes:
> 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?
Set a property under the level 1 headings with the archive location you
want
,----
| * Work
| :PROPERTIES:
| :ARCHIVE: %s_archive::* Work
| :END:
| ** Finish DBMS
| ...
| * Home
| :PROPERTIES:
| :ARCHIVE: %s_archive::* Home
| :END:
| ** Clean garage
| ...
`----
-Bernt
next prev parent reply other threads:[~2008-12-06 20:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-06 20:05 Setting org-archive-location David Neu
2008-12-06 20:28 ` Bernt Hansen [this message]
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
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=87prk5rqtz.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=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 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).