mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Fix defvar-local
This commit is contained in:
parent
cf1ac1be52
commit
ea53fe8454
1 changed files with 3 additions and 3 deletions
|
@ -1960,7 +1960,7 @@ mouse-3: Fetch notifications"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
;; Highlight the mode-line while debugging.
|
;; Highlight the mode-line while debugging.
|
||||||
(defvar doom-modeline--debug-cookie nil)
|
(defvar-local doom-modeline--debug-cookie nil)
|
||||||
(defun doom-modeline--debug-visual (&rest _)
|
(defun doom-modeline--debug-visual (&rest _)
|
||||||
"Update the face of mode-line for debugging."
|
"Update the face of mode-line for debugging."
|
||||||
(mapc (lambda (buffer)
|
(mapc (lambda (buffer)
|
||||||
|
@ -1973,8 +1973,8 @@ mouse-3: Fetch notifications"
|
||||||
(defun doom-modeline--normal-visual (&rest _)
|
(defun doom-modeline--normal-visual (&rest _)
|
||||||
"Restore the face of mode-line."
|
"Restore the face of mode-line."
|
||||||
(mapc (lambda (buffer)
|
(mapc (lambda (buffer)
|
||||||
(when doom-modeline--debug-cookie
|
(with-current-buffer buffer
|
||||||
(with-current-buffer buffer
|
(when doom-modeline--debug-cookie
|
||||||
(face-remap-remove-relative doom-modeline--debug-cookie)
|
(face-remap-remove-relative doom-modeline--debug-cookie)
|
||||||
(force-mode-line-update))))
|
(force-mode-line-update))))
|
||||||
(buffer-list)))
|
(buffer-list)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue