Add variable colors-enable-rainbow-delimiters to colors layer

By default the value is `nil`
This commit is contained in:
syl20bnr 2015-01-25 23:40:07 -05:00
parent 97c8c1c490
commit 0dcd340637
2 changed files with 15 additions and 5 deletions

View file

@ -14,8 +14,16 @@
;; Prefixes
;; ---------------------------------------------------------------------------
(setq spacemacs/key-binding-prefixes '(("C" . "colors")
("Ci" . "colors-identifiers")
("tC" . "toggles-colors")))
;; Variables
(defvar colors-enable-rainbow-identifiers nil
"If non nil the `rainbow-identifers' package is enabled.")
;; Command prefixes
(setq colors/key-binding-prefixes '(("C" . "colors")
("tC" . "toggles-colors")))
(when colors-enable-rainbow-identifiers
(push (cons "Ci" "colors-identifiers") colors/key-binding-prefixes))
(mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
spacemacs/key-binding-prefixes)
colors/key-binding-prefixes)

View file

@ -15,12 +15,14 @@
;; not working well for now
;; rainbow-blocks
rainbow-delimiters
rainbow-identifiers
rainbow-mode
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(when colors-enable-rainbow-identifiers
(push 'rainbow-identifiers colors-packages))
(defun colors/init-rainbow-blocks ()
(use-package rainbow-blocks
:disabled t