diff options
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r-- | oni-org/oni-org.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index d9ef258..6061667 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -79,8 +79,8 @@ installs it will always be ~." (defun oni-org-maybe-change-todo-state (current-state) "Change the state of the current task to in-progress CURRENT-STATE is todo." - (if (string= current-state "TODO") - "IN-PROGRESS" + (if (member current-state org-todo-heads) + (cadr (member current-state org-todo-keywords-1)) current-state)) ;;;###autoload |