Remove visual bell fn (doom-themes offers this now)

This commit is contained in:
Henrik Lissner 2017-06-05 12:35:40 +02:00
parent b82ace43ea
commit 14b3228dfb
2 changed files with 2 additions and 16 deletions

View file

@ -55,22 +55,6 @@
(add-hook 'iedit-mode-end-hook #'anzu--reset-status)))
;;; Flash the mode-line on error
;; TODO More flexible colors (only suits dark themes)
;; FIXME fast key-repeat can make the mode-line bg get stuck (rare)
(defvar doom--visual-bell-old-bg nil)
(defun doom-visual-bell ()
"Blink the mode-line red briefly."
(unless doom--visual-bell-old-bg
(setq doom--visual-bell-old-bg (face-background 'mode-line)))
(set-face-background 'mode-line "#54252C")
(run-with-timer
0.1 nil
(lambda () (set-face-background 'mode-line doom--visual-bell-old-bg))))
(setq ring-bell-function #'doom-visual-bell
visible-bell nil)
;; Keep `+doom-modeline-current-window' up-to-date
(defvar +doom-modeline-current-window (frame-selected-window))
(defun +doom-modeline|set-selected-window (&rest _)

View file

@ -36,6 +36,8 @@
:config
(load-theme +doom-theme t)
;; blink mode-line on errors
(doom-themes-visual-bell-config)
;; Add file icons to doom-neotree
(doom-themes-neotree-config)