Command to archive all completed TODOS in buffer.

This commit is contained in:
Ivan Malison 2015-01-12 12:28:16 -08:00
parent eb14992d5f
commit 80b0c6f52c

View File

@ -609,6 +609,18 @@ The current directory is assumed to be the project's root otherwise."
("C-c C-S-t" . org-todo-force-notes)) ("C-c C-S-t" . org-todo-force-notes))
:config :config
(progn (progn
(defun org-archive-if (condition-function)
(if (funcall condition-function)
(org-archive-subtree)))
(defun org-archive-if-completed ()
(interactive)
(org-archive-if 'org-entry-is-done-p))
(defun org-archive-completed-in-buffer ()
(interactive)
(org-map-entries 'org-archive-if-completed))
(defun org-capture-make-todo-template (&optional content) (defun org-capture-make-todo-template (&optional content)
(unless content (setq content "%?")) (unless content (setq content "%?"))
(with-temp-buffer (with-temp-buffer