Change buffer icon for unknown type.

This commit is contained in:
Vincent Zhang 2019-03-28 23:24:56 +08:00
parent 99a0bd9f12
commit 5cb7c2ddfb

View file

@ -204,7 +204,7 @@ buffer where knowing the current project directory is important."
: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) (if (symbolp icon)
(setq icon (doom-modeline-icon-for-mode 'fundamental-mode :height height))) (setq icon (doom-modeline-icon-faicon "file" :height height :v-adjust -0.0575)))
(unless (symbolp icon) (unless (symbolp icon)
(propertize icon (propertize icon
'help-echo (format "Major-mode: %s" (format-mode-line mode-name)) 'help-echo (format "Major-mode: %s" (format-mode-line mode-name))