Format codes.

This commit is contained in:
Vincent Zhang 2019-02-22 00:13:26 +07:00
parent 9066ea8abb
commit 32eb2cb0a6

View file

@ -162,7 +162,8 @@ buffer where knowing the current project directory is important."
(let* ((height (/ all-the-icons-scale-factor 1.3))
(icon (if (and buffer-file-name
(all-the-icons-auto-mode-match?))
(doom-modeline-icon-for-file (file-name-nondirectory buffer-file-name) :height height)
(doom-modeline-icon-for-file (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)))