mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
Optimize performance.
(benchmark-run 1000 (format-mode-line mode-line-format)) From ~2.5s to ~0.5s!!!
This commit is contained in:
parent
97d6b69222
commit
e075339b2b
1 changed files with 2 additions and 3 deletions
|
@ -521,8 +521,7 @@ active.")
|
||||||
(and (doom-modeline--active)
|
(and (doom-modeline--active)
|
||||||
'doom-modeline-buffer-file))))
|
'doom-modeline-buffer-file))))
|
||||||
(when face `(:inherit ,face))))))
|
(when face `(:inherit ,face))))))
|
||||||
'help-echo buffer-file-truename)))
|
'help-echo buffer-file-truename))))
|
||||||
(message "#####%s####" doom-modeline-buffer-file-name))
|
|
||||||
(add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name)
|
(add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name)
|
||||||
(add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name)
|
(add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue