Some Syntax Highlighting
Rainbow-Delimiters
You can use rainbow-delimiters
to change the colors of parentheses in your code.
(use-package rainbow-delimiters
:init (require 'rainbow-delimiters)
:commands rainbow-delimiters-mode
:config
:hook(
(prog-mode . rainbow-delimiters-mode)
(text-mode . rainbow-delimiters-mode)
);end hook
);end rainbow-delimiters
Rainbow Identifiers
You can change the colors of function and variable identifiers also.
(use-package rainbow-identifiers
:init (require 'rainbow-identifiers)
:commands rainbow-identifiers-mode
;:config
;(setq 'rainbow-identifiers-face-count 10);
;(setq rainbow-identifiers-choose-face-function rainbow-identifiers-choose-face-function )
;(setq rainbow-identifiers-choose-face-function rainbow-identifiers-predefined-choose-face )
;(setq rainbow-identifiers-cie-l*a*b*-lightness 230)
;(setq rainbow-identifiers-cie-l*a*b*-saturation 100)
;(setq rainbow-identifiers-cie-l*a*b*-color-count 7)
);end rainbow identifiers
Rainbow-Mode
With rainbow-mode
, you can colorize hex coded color names.
(use-package rainbow-mode
:commands rainbow-mode
:diminish
:hook (
(web-mode . rainbow-mode)
(css-mode . rainbow-mode)
);end hook
);end rainbow-mode
Highlight Indent Guides
Use highlight-indent-guides
when your code is formatted with prettier.el
or aggressive-indent.el
.
(use-package highlight-indent-guides
:diminish
:commands highlight-indent-guides-mode
:custom
;(highlight-indent-guides-auto-enabled t)
(highlight-indent-guides-responsive t)
(highlight-indent-guides-method 'character)
)
(use-package volatile-highlights
:diminish
:commands volatile-highlights-mode
;:hook
;(after-init . volatile-highlights-mode)
:custom-face
(vhl/default-face ((nil (:foreground "#FF3333" :background "#FFCDCD"))))
);end volatile highlites