When clocking in, check for a state head and switch to the next
Instead of checking specifically that it’s in the TODO state, check that it’s in any one of the first states (like TODO, or READ). If this is the case, switch it from the current state to whatever the settings define as being the next state (usually WIP or READING).
This commit is contained in:
parent
5c2ed55020
commit
8975e2fa22
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@ installs it will always be ~."
|
||||||
|
|
||||||
(defun oni-org-maybe-change-todo-state (current-state)
|
(defun oni-org-maybe-change-todo-state (current-state)
|
||||||
"Change the state of the current task to in-progress CURRENT-STATE is todo."
|
"Change the state of the current task to in-progress CURRENT-STATE is todo."
|
||||||
(if (string= current-state "TODO")
|
(if (member current-state org-todo-heads)
|
||||||
"IN-PROGRESS"
|
(cadr (member current-state org-todo-keywords-1))
|
||||||
current-state))
|
current-state))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Reference in a new issue