reddit / emacs

How strike-through org-heading with DONE tag

AbstProcDo · 2022-01-27 02:58
I have such setting for face-attribute: (set-face-attribute 'org-headline-done nil :strike-through t) and try to strike the DONE job as: >\* DONE Strike through done jobs. but it display as: ​ https://preview.redd.it/4ranhitpa5e81.png?width=891&format=png&auto=webp&s=e9c58ad7b1fce59a6344c87c72d9664463c16924 The tag "DONE' is left not struck through. How could get them all struck through, better if star \* symbols are also considered.
zck · 2022-01-27 03:21
You could also customize the face `org-done` -- the face that goes over DONE -- to have a strikethrough on it. I don't think it would cover the space after DONE, though, nor the header asterisk.
protesilaos · 2022-01-27 06:07
You need to fontify the entire heading for this to take effect: (setq org-fontify-done-headline t) Then `M-x org-mode-restart` for Org to pick up the changes. Other fontification-related user options: org-fontify-todo-headline org-fontify-quote-and-verse-blocks org-fontify-whole-heading-line org-fontify-whole-block-delimiter-line