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

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

[nongnu] elpa/idle-highlight-mode 1f40f80921 30/59: Remove "end" from id


From: ELPA Syncer
Subject: [nongnu] elpa/idle-highlight-mode 1f40f80921 30/59: Remove "end" from idle-highlight-exceptions
Date: Thu, 7 Jul 2022 12:00:30 -0400 (EDT)

branch: elpa/idle-highlight-mode
commit 1f40f80921a84e4f02edb90e9b2f98cf368c3741
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Remove "end" from idle-highlight-exceptions
    
    This is an arbitrary exception that doesn't
    make sense in many languages.
    
    Users can set this themselves, there is no need for a default.
---
 idle-highlight-mode.el | 2 +-
 readme.rst             | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index f132f61af0..17f4ee289a 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -68,7 +68,7 @@
   "Face used to highlight other occurrences of the word at point."
   :group 'idle-highlight)
 
-(defcustom idle-highlight-exceptions '("end")
+(defcustom idle-highlight-exceptions nil
   "List of words to be excepted from highlighting."
   :group 'idle-highlight
   :type '(repeat string))
diff --git a/readme.rst b/readme.rst
index e26f84b55c..0b2e03f5ff 100644
--- a/readme.rst
+++ b/readme.rst
@@ -26,6 +26,13 @@ Global Settings
    Face used for highlighting the symbol.
 ``idle-highlight-exceptions``
    Words to exclude from highlighting.
+
+   You may wish to set this to a different value for each mode, e.g:
+
+   .. code-block:: elisp
+
+      (setq-local idle-highlight-exceptions '("end" "begin"))
+
 ``idle-highlight-idle-time``
    Delay before highlighting (in seconds).
 ``global-idle-highlight-ignore-modes`` nil



reply via email to

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