* Automatically tagging DONE items as archived
@ 2015-08-23 7:38 Meir Goldenberg
0 siblings, 0 replies; only message in thread
From: Meir Goldenberg @ 2015-08-23 7:38 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
I would like to achieve two things:
1. Tag all tasks that are already marked DONE as ARCHIVE. I tried the
following, but it messes up the file, creating multiple levels of archived
items:
(defun my-org-archive-done-tasks ()
(interactive)
(org-map-entries 'org-archive-to-archive-sibling "/DONE"))
(global-set-key (kbd "C-c z") 'my-org-archive-done-tasks)
2. Have org-archive-to-archive-sibling be applied automatically when I mark
a task DONE.
I searched for a while, but was not able to find a solution. Can these be
done? Thanks!
[-- Attachment #2: Type: text/html, Size: 735 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-23 7:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-23 7:38 Automatically tagging DONE items as archived Meir Goldenberg
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).