I had a similar problem with AUCTeX and fic-mode. It's caused by the style-hooks executed by AUCTeX after loading the file. You can enable your minor mode in the TeX-update-style-hook, see. this TeX stackexchange question.
I have not found a builtin way to accomplish this "easily", so I wrote the following two functions which can manually be invoked to change the status of all todo states in a subtree to CANCELLED and back. You can use undo right after cancelling to reset it but this won't work some days later, therefore the uncancel-function.
IMPORTANT: This includes ALL ...
The doc says:
The second possibility is to use TODO keywords to indicate different
types of action items. For example, you might want to indicate that
items are for “work” or “home”. Or, when you work with several people
on a single project, you might want to assign action items directly to
persons, by using their names as TODO keywords. This type of
On my computer, sections with todo keyword COMMENT are not tangled. That is, change your TODO example to * COMMENT This is a heading. It is also fairly easy to toggle the COMMENT keyword, with C-; keystroke anywhere on or within a heading.
The question is: do you want hl-todo-mode to be turned on for every mode that is allowed by hl-todo-include-mode (by default that is prog-mode and text-mode) except for the excluded modes in hl-todo-exclude-mode (by default, org-mode)? OR you just want it turned on for LaTeX-mode?
If the former, then add
in your init file (.emacs or ....
By the time I posted my question I have manage to find the culprit. Posting it with an answer just in case others need to see this.
The setting line was missing a space after the WAIT state and the "|" pipeline, which caused both issues.
#+TODO: TODO(t) BUG(b) WAIT(w@/!) | DONE(d@/!) CANCELLED(c@/!)
It is actually explained in the docs that it is possible to simply override the enforcement of todo dependencies by using the C-c C-t command with triple prefix argument: C-u C-u C-u.
Also, there is no need to set all the subtasks individually to CANCELED state, as the archive-tag archives the entire subtree, which removes all the subtasks from the agenda.