Update help echo of mode icon.

This commit is contained in:
Vincent Zhang 2018-12-28 15:48:47 +08:00
parent be9df01374
commit e83a22ee6f

View file

@ -752,7 +752,7 @@ buffer where knowing the current project directory is important."
(setq icon (doom-modeline-icon-for-file (buffer-name) :height 0.92))) (setq icon (doom-modeline-icon-for-file (buffer-name) :height 0.92)))
(unless (symbolp icon) (unless (symbolp icon)
(propertize icon (propertize icon
'help-echo (format "Major-mode: `%s'" major-mode) 'help-echo (format "Major-mode: %s" mode-name)
'display '(raise -0.125)))))) 'display '(raise -0.125))))))
(add-hook 'find-file-hook 'doom-modeline-update-buffer-file-icon) (add-hook 'find-file-hook 'doom-modeline-update-buffer-file-icon)
(add-hook 'after-revert-hook 'doom-modeline-update-buffer-file-icon) (add-hook 'after-revert-hook 'doom-modeline-update-buffer-file-icon)