Emacs: Move rainbow-mode to text/common.

This commit is contained in:
tastytea 2020-10-14 21:43:27 +02:00
parent af01f30679
commit 34764d1306
2 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-08-03T03:08:03+0200>
;; Time-stamp: <2020-10-14T21:42:02+0200>
;;; Commentary:
@ -259,10 +259,6 @@ year if mode is derived from prog-mode."
:foreground "LightSkyBlue"))))
:hook (prog-mode . rainbow-delimiters-mode))
(use-package rainbow-mode
:diminish rainbow-mode
:hook (prog-mode . rainbow-mode))
;; Make bug references clickable.
(use-package bug-reference
:straight nil ; Inbuilt.

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-10-14T21:39:33+0200>
;; Time-stamp: <2020-10-14T21:42:37+0200>
;;; Commentary:
@ -307,5 +307,11 @@
:mode ("\\.log$" . my/apply-ansi-colors-on-buffer)
:hook (compilation-filter . my/apply-ansi-colors-compilation))
;; Colorize color names.
(use-package rainbow-mode
:demand t
:diminish rainbow-mode
:hook (prog-mode . rainbow-mode))
(provide 'text/common)
;;; common.el ends here