mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix #185: doom-modeline breaks query-replace.
This commit is contained in:
parent
118f7084ff
commit
6293c63924
1 changed files with 9 additions and 8 deletions
|
@ -327,6 +327,7 @@ Uses `all-the-icons-material' to fetch the icon."
|
||||||
(defun doom-modeline-update-buffer-file-name (&rest _)
|
(defun doom-modeline-update-buffer-file-name (&rest _)
|
||||||
"Update buffer file name in mode-line."
|
"Update buffer file name in mode-line."
|
||||||
(setq doom-modeline--buffer-file-name
|
(setq doom-modeline--buffer-file-name
|
||||||
|
(save-match-data
|
||||||
(if buffer-file-name
|
(if buffer-file-name
|
||||||
(doom-modeline-buffer-file-name)
|
(doom-modeline-buffer-file-name)
|
||||||
(propertize "%b"
|
(propertize "%b"
|
||||||
|
@ -335,7 +336,7 @@ Uses `all-the-icons-material' to fetch the icon."
|
||||||
'mode-line-inactive)
|
'mode-line-inactive)
|
||||||
'help-echo "Buffer name
|
'help-echo "Buffer name
|
||||||
mouse-1: Previous buffer\nmouse-3: Next buffer"
|
mouse-1: Previous buffer\nmouse-3: Next buffer"
|
||||||
'local-map mode-line-buffer-identification-keymap))))
|
'local-map mode-line-buffer-identification-keymap)))))
|
||||||
(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-revert-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-save-hook #'doom-modeline-update-buffer-file-name)
|
||||||
|
|
Loading…
Reference in a new issue