[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idle-highlight-mode c4be332ecb 34/59: readme: move hints i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idle-highlight-mode c4be332ecb 34/59: readme: move hints into their own section |
Date: |
Thu, 7 Jul 2022 12:00:31 -0400 (EDT) |
branch: elpa/idle-highlight-mode
commit c4be332ecb17890c242eaae37bc448f402e306b3
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
readme: move hints into their own section
---
readme.rst | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/readme.rst b/readme.rst
index b0966bbb7d..96a3bcae5c 100644
--- a/readme.rst
+++ b/readme.rst
@@ -26,13 +26,6 @@ Global Settings
Face used for highlighting the symbol.
``idle-highlight-exceptions`` nil
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-exceptions-face`` '(font-lock-keyword-face
font-lock-string-face)
Faces to exclude from highlighting (defaults to ignore keywords & strings).
``idle-highlight-idle-time``
@@ -68,3 +61,17 @@ Installation
:config (setq idle-highlight-idle-time 0.2)
:hook ((prog-mode text-mode) . idle-highlight-mode)))
+
+Hints
+-----
+
+You may wish to set this to a different value for each mode, e.g:
+
+.. code-block:: elisp
+
+ (add-hook 'after-change-major-mode-hook
+ (lambda ()
+ (when (derived-mode-p 'c-mode)
+ (setq-local idle-highlight-exceptions '("unsigned" "signed" "long"
"int" "shot" "char")))
+ (when (derived-mode-p 'python-mode)
+ (setq-local idle-highlight-exceptions '("list" "tuple" "int" "float"
"str" "bool")))))
- [nongnu] branch elpa/idle-highlight-mode created (now 5418252a11), ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 1e0b38c09f 02/59: [Refactor] Save the last highlighted regexp in a variable for easier unhighlighting., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 64d6522636 10/59: Fix documentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 902df81b5a 18/59: Cleanup: deprecation warning using `in-string-p`, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode c4be332ecb 34/59: readme: move hints into their own section,
ELPA Syncer <=
- [nongnu] elpa/idle-highlight-mode aa4c7a7ada 40/59: readme: update description, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 4714dcafcc 36/59: readme: add default values for settings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 2b627d5d45 24/59: Cleanup: be explicit that this mode isn't global, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 20a0fb798c 27/59: Disable the repeating idle timer when the minor mode isn't active, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 082ce4f5fc 48/59: Fix highlighting visible ranges, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 0423fc2b38 55/59: Fix #2 Substrings of identifiers are highlighted, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 7401286a4b 01/59: Version 1.0. Initial Commit., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode df7f6a84f5 07/59: Highlight only when point is on a symbol character., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 834d03af77 08/59: Update version to 1.1.2, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode f360d4e7fe 12/59: [Formatting] Place defcustoms before defvars., ELPA Syncer, 2022/07/07