Set default file icon.

This commit is contained in:
Vincent Zhang 2019-02-19 04:04:30 +08:00
parent fc8b61021d
commit b34f9849d2

View file

@ -166,6 +166,8 @@ buffer where knowing the current project directory is important."
(file-name-nondirectory buffer-file-name)
: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)
(propertize icon
'help-echo (format "Major-mode: %s" mode-name)