all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Setting org-archive-location
@ 2008-12-06 20:05 David Neu
  2008-12-06 20:28 ` Bernt Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: David Neu @ 2008-12-06 20:05 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-07 14:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-12-07  4:02     ` Bernt Hansen
2008-12-07 14:28     ` Matthew Lundin

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.