]> git.cworth.org Git - notmuch/commitdiff
emacs: add defcustom to control hl-line mode
authorDavid Bremner <david@tethera.net>
Sat, 10 Aug 2024 17:36:20 +0000 (14:36 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 13 Mar 2025 10:18:07 +0000 (07:18 -0300)
Currently the presence of hl-line highlighting is controlled
implicitely by hooks. In future commits it will be migrated to use
this variable.

emacs/notmuch.el

index 2a73ffa571c41a04b0836a50a991102249fad658..934ec8945b2f7d1d01201c66046a7245888210d2 100644 (file)
@@ -133,6 +133,11 @@ there will be called at other points of notmuch execution."
   :group 'notmuch-search
   :group 'notmuch-hooks)
 
+(defcustom notmuch-hl-line t
+  "Use hl-line-mode to highlight current thread / message"
+  :type 'boolean
+  :group 'notmuch)
+
 ;;; Mime Utilities
 
 (defun notmuch-foreach-mime-part (function mm-handle)