Commits

Peter Szilagyi committed dc23ea6

Fixed sp. and clarified comment on alternative Jane.rainbow-delimiters impl.

Comments (0)

Files changed (1)

js-micro-features.el

   (defcustom Jane.rainbow-delimiters-maximum-size 1e6
     "Maximum size of a buffer for `Jane.rainbow-delimiters-mode'.")
   ;; Actually, we could just have made lisp-mode-hook and
-  ;; scheme-mode-hook conditional, like the mody of
-  ;; Jane.rainbow-delimiters-mode.  Then we still could have
-  ;; overridden the default with \[rainbow-delimiter-mode].
+  ;; scheme-mode-hook conditional, like this:
+  ;;
+  ;; (add-hook 'lisp-mode-hook
+  ;;   (lambda ()
+  ;;     (if (<= (buffer-size) Jane.rainbow-delimiters-maximum-size)
+  ;;         (rainbow-delimiters-mode 1))))
+  ;;
+  ;; Then we still could have overridden the default with
+  ;; \\[rainbow-delimiters-mode].
   (define-minor-mode Jane.rainbow-delimiters-mode
     "Implement `rainbow-delimiters-mode' modulo `Jane.rainbow-delimiters-maximum-size'."
     nil nil nil