From d4ad38ecccd29245d4dca60275db64f27e7a5996 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 26 Nov 2021 19:12:00 +0100 Subject: add commands and shortcuts to change the state of an entry add bibli-paris/set-to-{todo,next,booked,done} and the corresponding shortcuts prefixed by SPC mt --- local/bibli-paris/bibli-paris.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'local') diff --git a/local/bibli-paris/bibli-paris.el b/local/bibli-paris/bibli-paris.el index 55483b5..5232b44 100644 --- a/local/bibli-paris/bibli-paris.el +++ b/local/bibli-paris/bibli-paris.el @@ -458,6 +458,28 @@ STATE (string)." (bibli-paris/change-entry 'outline-get-next-sibling)) +;; change the state of an entry + +(defun bibli-paris/set-to-todo () + "Switch the entry at point to the TODO state." + (interactive) + (org-todo "TODO")) + +(defun bibli-paris/set-to-next () + "Switch the entry at point to the NEXT state." + (interactive) + (org-todo "NEXT")) + +(defun bibli-paris/set-to-booked () + "Switch the entry at point to the BOOKED state." + (interactive) + (org-todo "BOOKED")) + +(defun bibli-paris/set-to-done () + "Switch the entry at point to the DONE state." + (interactive) + (org-todo "DONE")) + ;; minor mode ;;;###autoload -- cgit v1.2.3