On 2026-08-23 22:48, J.D. Smith wrote:
> Do customize org-inside-appearance and report what works well for
> you.

So far I’ve just been inverting so that each type of emphasis gets its
own background colour:

  (:cursor bar :face (:inverse-video t))

> I'm not a big user of org-agenda, but I'm not sure I ever saw it
> respect org-hide-emphasis-markers. Since font-lock-mode is not on in
> the org-agenda buffer, the changes we made to font-locking shouldn't
> do anything there.

Actually I /do/ know why, I just forgot :) The invisible font property
of markers is changed from ‘t’ to ‘org-emphasis’, so it just needs to
be added to the ‘buffer-invisibility-spec’ (and in ‘org-habit’ to get
the columns to align correctly). The patch attached should fix it.

Best,

-- 
Jacob S. Gordon
[email protected]
Please don’t send me HTML emails or MS Office/Apple iWork documents.
https://useplaintext.email/#etiquette
https://www.fsf.org/campaigns/opendocument
From 2d5f7bd197ac65abf647341e2fefdb8e63fbd4e5 Mon Sep 17 00:00:00 2001
From: "Jacob S. Gordon" <[email protected]>
Date: Sun, 23 Aug 2026 16:20:00 -0400
Subject: [PATCH v1] ; org-agenda: Respect emphasis marker visibility

* lisp/org-agenda.el (org-agenda-mode)
* lisp/org-habit.el (org-habit-insert-consistency-graphs): Add
'org-emphasis' to the 'buffer-invisibility-spec'.
---
 lisp/org-agenda.el | 1 +
 lisp/org-habit.el  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index a426d4f5b..d24aaa76f 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -2396,6 +2396,7 @@ (defun org-agenda-mode ()
           org-agenda-archives-mode org-agenda-start-with-archives-mode))
   (add-to-invisibility-spec '(org-filtered))
   (add-to-invisibility-spec '(org-link))
+  (add-to-invisibility-spec '(org-emphasis))
   (easy-menu-change
    '("Agenda") "Agenda Files"
    (append
diff --git a/lisp/org-habit.el b/lisp/org-habit.el
index d88650f5f..43c31f772 100644
--- a/lisp/org-habit.el
+++ b/lisp/org-habit.el
@@ -453,7 +453,7 @@ (defun org-habit-build-graph (habit starting current ending)
 (defun org-habit-insert-consistency-graphs (&optional line)
   "Insert consistency graph for any habitual tasks."
   (let ((inhibit-read-only t)
-	(buffer-invisibility-spec '(org-link))
+	(buffer-invisibility-spec '(org-link org-emphasis))
 	(moment (time-subtract nil (* 3600 org-extend-today-until))))
     (save-excursion
       (goto-char (if line (line-beginning-position) (point-min)))

base-commit: 92432772c2970987a98776d2fdc3909ad9eeef32
-- 
Jacob S. Gordon
[email protected]
Please don’t send me HTML emails or MS Office/Apple iWork documents.
https://useplaintext.email/#etiquette
https://www.fsf.org/campaigns/opendocument

Reply via email to