aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2024-08-10 14:36:23 -0300
committerDavid Bremner <david@tethera.net>2025-03-13 07:55:21 -0300
commit43e90e7caa9cbb10097ed9526052fe82cd30b9f0 (patch)
tree57a355d2285259b8dfad7ef4736d1107ce444fed /emacs
parent5cb06b1893091cb069da990556e822c21a684acf (diff)
emacs/tree: condition hl-line-mode on notmuch-hl-line
It isn't clear that this call to hl-line-mode will survive the coming re-organization to stop relying on hooks, but incrementally this at least makes the disabling behaviour consistent.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-tree.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 2332f020..24a9970f 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -1091,7 +1091,8 @@ Complete list of currently available key bindings:
\\{notmuch-tree-mode-map}"
(setq notmuch-buffer-refresh-function #'notmuch-tree-refresh-view)
- (hl-line-mode 1)
+ (when notmuch-hl-line
+ (hl-line-mode 1))
(setq buffer-read-only t)
(setq truncate-lines t)
(when notmuch-tree-outline-enabled (notmuch-tree-outline-mode 1)))