emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/hl-block-mode 9f39593c4f 19/64: make hl-bock-mode lighter


From: ELPA Syncer
Subject: [nongnu] elpa/hl-block-mode 9f39593c4f 19/64: make hl-bock-mode lighter customizable
Date: Thu, 7 Jul 2022 12:00:05 -0400 (EDT)

branch: elpa/hl-block-mode
commit 9f39593c4f0d4c34265d0c81c460aeb237988059
Author: riscy <riscy@users.noreply.github.com>
Commit: riscy <riscy@users.noreply.github.com>

    make hl-bock-mode lighter customizable
---
 hl-block-mode.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/hl-block-mode.el b/hl-block-mode.el
index 5be0ab6582..7e3220be48 100644
--- a/hl-block-mode.el
+++ b/hl-block-mode.el
@@ -52,6 +52,11 @@ Set to nil to use all brackets."
   :group 'hl-block-mode
   :type  'float)
 
+(defcustom hl-block-mode-lighter ""
+  "Lighter for hl-block-mode."
+  :group 'hl-block-mode
+  :type 'string)
+
 (defun hl-block--syntax-prev-bracket (pt)
   "A version of `syntax-ppss' to match curly braces.
 PT is typically the '(point)'."
@@ -163,7 +168,7 @@ This can happen when switching buffers."
 (define-minor-mode hl-block-mode
   "Highlight block under the cursor."
   :global nil
-  :lighter ""
+  :lighter hl-block-mode-lighter
   (cond (hl-block-mode
          (jit-lock-unregister 'hl-block-mode-enable)
          (hl-block-mode-enable))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]