mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Set default file icon.
This commit is contained in:
parent
fc8b61021d
commit
b34f9849d2
1 changed files with 2 additions and 0 deletions
|
@ -166,6 +166,8 @@ buffer where knowing the current project directory is important."
|
||||||
(file-name-nondirectory buffer-file-name)
|
(file-name-nondirectory buffer-file-name)
|
||||||
:height height)
|
:height height)
|
||||||
(doom-modeline-icon-for-mode major-mode :height height))))
|
(doom-modeline-icon-for-mode major-mode :height height))))
|
||||||
|
(if (symbolp icon)
|
||||||
|
(setq icon (doom-modeline-icon-for-mode 'fundamental-mode :height height)))
|
||||||
(unless (symbolp icon)
|
(unless (symbolp icon)
|
||||||
(propertize icon
|
(propertize icon
|
||||||
'help-echo (format "Major-mode: %s" mode-name)
|
'help-echo (format "Major-mode: %s" mode-name)
|
||||||
|
|
Loading…
Reference in a new issue