Solved, thanks! :-)
;;;_ borrar todas las etiquetas al cambiar el estado a HECHO
(defun borrar-etiquetas-tareas-hechas (plist)
"Borra todas las etiquetas al cambiar una tarea a =HECHO=."
(when (eq (plist-get plist :type) 'todo-state-change)
(when (string= (plist-get plist :to) "HECHO")
Ypo writes:
> I have tried gptel inside emacs (I'm sorry, but I need to tell it) and I
> got this code:
>
> #+begin_src emacs-lisp
> (defun my-org-trigger-function (state)
> "Remove all tags when state changes to 'DONE'"
> (when (string= state "DONE")
> ...
> (add-hook 'org-trigger-hook
Hi, Ihor.
I have tried gptel inside emacs (I'm sorry, but I need to tell it) and I
got this code:
#+begin_src emacs-lisp
(defun my-org-trigger-function (state)
"Remove all tags when state changes to 'DONE'"
(when (string= state "DONE")
(org-toggle-tag nil 'remove)))
(add-hook
Ypo writes:
> I would like to remove every tag when changing to done state.
>
> This is not working:
>
> '(org-todo-state-tags-triggers '((done ("(.*)"
>
> This works though:
>
> '(org-todo-state-tags-triggers '((done ("Atag"
Yes, regexps are not supported in
Hi
I would like to remove every tag when changing to done state.
This is not working:
'(org-todo-state-tags-triggers '((done ("(.*)"
This works though:
'(org-todo-state-tags-triggers '((done ("Atag"
Best regards