branch: elpa/rainbow-delimiters
commit e50e4787b4087d9b372b4d3b51a2ec48d627fe1b
Author: Fanael Linithien <[email protected]>
Commit: Fanael Linithien <[email protected]>

    Turn rainbow-delimiters-max-face-count into a defcustom.
---
 rainbow-delimiters.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index f9c4cc9f75..57a25f05f2 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -129,10 +129,15 @@ Delimiters in this list are not highlighted."
       `(progn ,@faces))))
 (rainbow-delimiters--define-depth-faces)
 
-(defconst rainbow-delimiters-max-face-count 9
+(defcustom rainbow-delimiters-max-face-count 9
   "Number of faces defined for highlighting delimiter levels.
 
-Determines depth at which to cycle through faces again.")
+Determines depth at which to cycle through faces again.
+
+It's safe to change this variable provided that for all integers from 1 to the
+new value inclusive, a face `rainbow-delimiters-depth-N-face' is defined."
+  :type 'integer
+  :group 'rainbow-delimiters)
 
 (defcustom rainbow-delimiters-outermost-only-face-count 0
   "Number of faces to be used only for N outermost delimiter levels.

Reply via email to