[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Automatically tagging DONE items as archived

From: Meir Goldenberg
Subject: [O] Automatically tagging DONE items as archived
Date: Sun, 23 Aug 2015 10:38:36 +0300

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 ()
  (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!  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]