ledger-mode
ledger-mode copied to clipboard
highlight-regexp doesn't work in ledger-mode ?
I just tried using highlight-regexp to highlight "TODO" in yellow, but it doesn't work unless I turn off font-lock-mode. That's a pity, and as far as I know unusual, that they won't coexist ?
The "TODO" was placed in comments, presumably?
It can also be in description or account names, eg.
This behavior isn't happening for me (6 years later).
I came across this issue while submitting a pull-request for fixing the comment highlighting for postings.
When I use highlight-regexp (with font-lock-mode of course) to highlight all occurences of TODO, it successfully highlights them all, regardless of where they are. If TODO is found anywhere in the file, it gets highlighted over the fontification specified by ledger-mode. I've tried it in tags, in directives, in transaction lines, in posting lines, globally, etc.
Running Emacs version 29.1, and the latest ledger-mode version from MELPA (version 4.0.0?)
If @simonmichael can confirm then I think we can close this issue.
Thank you, yes I can't reproduce in emacs 30.0.50 with a recent ledger-mode.