mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-17 19:16:11 +00:00
Fix: watch buffer-read-only.
This commit is contained in:
parent
5adedd5953
commit
f9d98b935e
1 changed files with 2 additions and 1 deletions
|
@ -833,8 +833,9 @@ Uses `all-the-icons-material' to fetch the icon."
|
||||||
(when (>= emacs-major-version 26)
|
(when (>= emacs-major-version 26)
|
||||||
(add-variable-watcher
|
(add-variable-watcher
|
||||||
'buffer-read-only
|
'buffer-read-only
|
||||||
(lambda (_sym _val op _where)
|
(lambda (_sym val op _where)
|
||||||
(when (eq op 'set)
|
(when (eq op 'set)
|
||||||
|
(setq buffer-read-only val)
|
||||||
(doom-modeline-update-buffer-file-state-icon)))))
|
(doom-modeline-update-buffer-file-state-icon)))))
|
||||||
|
|
||||||
(defvar-local doom-modeline--buffer-file-name nil)
|
(defvar-local doom-modeline--buffer-file-name nil)
|
||||||
|
|
Loading…
Reference in a new issue