I try to log all my todos in archive.org file, I make the following function:
(defun mark-done-and-archive () (interactive) (org-todo 'done) (org-archive-subtree)) (define-key global-map "\C-c\C-x\C-s" 'mark-done-and-archive)
And the part to move the todo to archive works but
(org-todo 'done) isn't working and in archive the todo appears as TODO and not as DONE, I try to eval
(org-todo 'done) in org-buffer with
M-: (org-todo 'done) and it works so I don't know whats happening.