mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Update buffer state icon and name after reverting.
This commit is contained in:
parent
cded14f2bb
commit
3a96162207
1 changed files with 2 additions and 0 deletions
|
@ -847,6 +847,7 @@ Uses `all-the-icons-material' to fetch the icon."
|
|||
"vertical_align_center"
|
||||
'doom-modeline-warning)))))
|
||||
(add-hook 'find-file-hook #'doom-modeline-update-buffer-file-state-icon)
|
||||
(add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-state-icon)
|
||||
(add-hook 'after-save-hook #'doom-modeline-update-buffer-file-state-icon)
|
||||
(add-hook 'read-only-mode-hook #'doom-modeline-update-buffer-file-state-icon)
|
||||
(add-hook 'after-change-functions #'doom-modeline-update-buffer-file-state-icon)
|
||||
|
@ -886,6 +887,7 @@ Uses `all-the-icons-material' to fetch the icon."
|
|||
mouse-1: Previous buffer\nmouse-3: Next buffer"
|
||||
'local-map mode-line-buffer-identification-keymap))))
|
||||
(add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name)
|
||||
(add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-name)
|
||||
(add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name)
|
||||
(add-hook 'after-change-functions #'doom-modeline-update-buffer-file-name)
|
||||
(add-hook 'clone-indirect-buffer-hook #'doom-modeline-update-buffer-file-name)
|
||||
|
|
Loading…
Reference in a new issue