mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Refactor.
This commit is contained in:
parent
ea5535fd1f
commit
61ae177759
1 changed files with 2 additions and 2 deletions
|
@ -372,8 +372,8 @@ mouse-1: Previous buffer\nmouse-3: Next buffer"
|
|||
(setq doom-modeline-buffer-file-name-style val)
|
||||
(dolist (buf (buffer-list))
|
||||
(with-current-buffer buf
|
||||
(if buffer-file-name
|
||||
(doom-modeline-update-buffer-file-name))))))))
|
||||
(when buffer-file-name
|
||||
(doom-modeline-update-buffer-file-name))))))))
|
||||
|
||||
;; Optimize: just update the face of the buffer name in `after-change-functions', since
|
||||
;; `doom-modeline--buffer-file-name' may consume lots of CPU if it's called too frequently.
|
||||
|
|
Loading…
Add table
Reference in a new issue