mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Don't display buffer modification state in pure buffers.
This commit is contained in:
parent
60ef755ef2
commit
2f3df816c2
1 changed files with 2 additions and 1 deletions
|
@ -262,7 +262,8 @@ Uses `all-the-icons-material' to fetch the icon."
|
|||
(cond (buffer-read-only
|
||||
(doom-modeline-buffer-file-state-icon
|
||||
"lock" "🔒" "%1*" 'doom-modeline-warning))
|
||||
((and (buffer-modified-p)
|
||||
((and buffer-file-name
|
||||
(buffer-modified-p)
|
||||
doom-modeline-buffer-modification-icon)
|
||||
(doom-modeline-buffer-file-state-icon
|
||||
"save" "💾" "%1*" 'doom-modeline-buffer-modified))
|
||||
|
|
Loading…
Add table
Reference in a new issue