mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: missing or incorrect mode icons.
This commit is contained in:
parent
7781332b80
commit
bec939f4ad
1 changed files with 1 additions and 3 deletions
|
@ -160,9 +160,7 @@ buffer where knowing the current project directory is important."
|
||||||
(setq doom-modeline--buffer-file-icon
|
(setq doom-modeline--buffer-file-icon
|
||||||
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
||||||
(let* ((height (/ all-the-icons-scale-factor 1.3))
|
(let* ((height (/ all-the-icons-scale-factor 1.3))
|
||||||
(icon (doom-modeline-icon-for-mode major-mode :height height)))
|
(icon (doom-modeline-icon-for-file (buffer-name) :height height)))
|
||||||
(if (symbolp icon)
|
|
||||||
(setq icon (doom-modeline-icon-for-file (buffer-name) :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