Emacs: Reset volatile-highlights colors with reload-theme.
This commit is contained in:
parent
8a7041d7a8
commit
98e5920502
|
@ -1,6 +1,6 @@
|
|||
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-11-29T10:05:55+0100>
|
||||
;; Time-stamp: <2020-11-29T10:54:00+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -74,7 +74,9 @@
|
|||
(set-face-background 'scroll-bar (face-background 'default))
|
||||
(set-face-foreground 'scroll-bar (face-foreground 'shadow)))
|
||||
(when (fboundp #'my/ruler-set-colors)
|
||||
(my/ruler-set-colors)))
|
||||
(my/ruler-set-colors))
|
||||
(when (fboundp #'my/volatile-highlights-reset-color)
|
||||
(my/volatile-highlights-reset-color)))
|
||||
(my/reload-theme)
|
||||
|
||||
(doom-themes-visual-bell-config) ; Flash modeline on error.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-11-26T12:47:14+0100>
|
||||
;; Time-stamp: <2020-11-29T10:53:18+0100>
|
||||
|
||||
;;; Commentary:
|
||||
;; * Setup scratch buffer.
|
||||
|
@ -118,9 +118,11 @@
|
|||
:diminish volatile-highlights-mode
|
||||
:after (doom-themes display-line-numbers)
|
||||
:config (progn
|
||||
(set-face-background 'vhl/default-face
|
||||
(hexrgb-increment-equal-rgb
|
||||
(face-background 'default) 2 8)))
|
||||
(defun my/volatile-highlights-reset-color ()
|
||||
(set-face-background 'vhl/default-face
|
||||
(hexrgb-increment-equal-rgb
|
||||
(face-background 'default) 2 8)))
|
||||
(my/volatile-highlights-reset-color))
|
||||
:hook (window-setup . volatile-highlights-mode))
|
||||
|
||||
(provide 'basics/buffers)
|
||||
|
|
Loading…
Reference in New Issue