Emacs: Add rainbow-delimiters.

This commit is contained in:
tastytea 2020-01-28 04:47:57 +01:00
parent 2fe8007536
commit 8863024422

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*- ;;; 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: ;;; Commentary:
@ -265,5 +265,20 @@ year if mode is derived from prog-mode."
(before-save . my/maybe-copyright-update) (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) (provide 'programming/common)
;;; common.el ends here ;;; common.el ends here