From 263580b92f35fa90f1f0619115ac5206645833e4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 10 May 2017 19:13:53 +0200 Subject: [PATCH] lang/org: fix org-checkbox-statistics-(done|todo) not respecting underlying faces --- modules/lang/org/config.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 7a0201397..cabc46e79 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -187,8 +187,15 @@ ;;; Custom fontification (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 - '(;; 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: ("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)" 1 'org-headline-done prepend)