From: "David Neu" <david@davidneu.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Setting org-archive-location
Date: Sat, 6 Dec 2008 15:34:34 -0500 [thread overview]
Message-ID: <e0b44a890812061234t6fbcb662v662e8cb629701bf5@mail.gmail.com> (raw)
In-Reply-To: <87prk5rqtz.fsf@gollum.intra.norang.ca>
Hi Bernt,
Thanks for that suggestion!
Do you know if there is any way to avoid hardcoding the month and year
I used in my example, i.e.
:ARCHIVE: %s-2008-12-archive.org::* Work
Cheers,
David
On Sat, Dec 6, 2008 at 3:28 PM, Bernt Hansen <bernt@norang.ca> wrote:
> "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:34 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
2008-12-06 20:34 ` David Neu [this message]
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=e0b44a890812061234t6fbcb662v662e8cb629701bf5@mail.gmail.com \
--to=david@davidneu.com \
--cc=bernt@norang.ca \
--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.