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

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

[nongnu] elpa/rainbow-delimiters d44ed19ade 030/188: Note that rainbow-d


From: ELPA Syncer
Subject: [nongnu] elpa/rainbow-delimiters d44ed19ade 030/188: Note that rainbow-delimiters-depth-1-face only gets applied to outermost delimiter pair. (Stylistically this is nice because it makes the outermost pair distinct.)
Date: Sat, 1 Jan 2022 00:58:50 -0500 (EST)

branch: elpa/rainbow-delimiters
commit d44ed19ade8e433f5e95a2ffc4d43e6ea35a75a9
Author: Jeremy L. Rayman <jeremy.rayman@gmail.com>
Commit: Jeremy L. Rayman <jeremy.rayman@gmail.com>

    Note that rainbow-delimiters-depth-1-face only gets applied to outermost 
delimiter pair. (Stylistically this is nice because it makes the outermost pair 
distinct.)
---
 rainbow-delimiters.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index ebd67235bd..0a6b8a202d 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -286,6 +286,8 @@ For example: 'rainbow-delimiters-depth-1-face'."
             (and (< depth rainbow-delimiters-max-face-count)
                  depth)
             ;; Deeper than # of defined faces; cycle back through to beginning.
+            ;; Depth 1 face is only applied to the outermost delimiter pair.
+            ;; Cycles infinitely through faces 2-9.
             (let ((cycled-depth (mod depth rainbow-delimiters-max-face-count)))
               (if (/= cycled-depth 0)
                   ;; Return face # that corresponds to current nesting level.



reply via email to

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