Emacs: Add rainbow-delimiters.
This commit is contained in:
parent
2fe8007536
commit
8863024422
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-01-28T03:31:38+0100>
|
||||
;; Time-stamp: <2020-01-28T04:47:37+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -265,5 +265,20 @@ year if mode is derived from prog-mode."
|
|||
(before-save . my/maybe-copyright-update)
|
||||
)
|
||||
|
||||
;; Highlights parentheses, brackets or braces according to their depth.
|
||||
(use-package rainbow-delimiters
|
||||
:custom
|
||||
(rainbow-delimiters-max-face-count 2)
|
||||
|
||||
:custom-face
|
||||
(rainbow-delimiters-depth-1-face ((t (:inherit rainbow-delimiters-base-face
|
||||
:foreground "LightPink"))))
|
||||
(rainbow-delimiters-depth-2-face ((t (:inherit rainbow-delimiters-base-face
|
||||
:foreground "LightGreen"))))
|
||||
|
||||
:hook
|
||||
(prog-mode . rainbow-delimiters-mode)
|
||||
)
|
||||
|
||||
(provide 'programming/common)
|
||||
;;; common.el ends here
|
||||
|
|
Loading…
Reference in New Issue
Block a user