lang/org: fix org-checkbox-statistics-(done|todo) not respecting underlying faces
This commit is contained in:
parent
7b7c9fdf81
commit
263580b92f
1 changed files with 8 additions and 1 deletions
|
@ -187,8 +187,15 @@
|
||||||
|
|
||||||
;;; Custom fontification
|
;;; Custom fontification
|
||||||
(add-hook! 'org-font-lock-set-keywords-hook
|
(add-hook! 'org-font-lock-set-keywords-hook
|
||||||
|
(setq org-font-lock-extra-keywords
|
||||||
|
(delete '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
|
||||||
|
(0 (org-get-checkbox-statistics-face) t))
|
||||||
|
org-font-lock-extra-keywords))
|
||||||
(nconc org-font-lock-extra-keywords
|
(nconc org-font-lock-extra-keywords
|
||||||
'(;; I like how org-mode fontifies checked TODOs and want this to extend to
|
'(;; Make checkbox statistic cookies respect underlying faces
|
||||||
|
("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
|
||||||
|
(0 (org-get-checkbox-statistics-face) prepend))
|
||||||
|
;; I like how org-mode fontifies checked TODOs and want this to extend to
|
||||||
;; checked checkbox items:
|
;; checked checkbox items:
|
||||||
("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)"
|
("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)"
|
||||||
1 'org-headline-done prepend)
|
1 'org-headline-done prepend)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue