From 3464819e6c9e7ea4b3e8c8fdba97dc3d847c28fb Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 12 Apr 2019 01:30:25 +0800 Subject: [PATCH] Display color icons for major modes by default. --- README.md | 6 +++--- doom-modeline-core.el | 2 +- doom-modeline-segments.el | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 37d181c..bd8343f 100644 --- a/README.md +++ b/README.md @@ -148,14 +148,14 @@ Strongly recommend to use ;; Please refer to https://github.com/bbatsov/projectile/issues/657. (setq doom-modeline-buffer-file-name-style 'truncate-upto-project) -;; Whether show `all-the-icons' or not (if nil nothing will be showed). +;; Whether display icons or not (if nil nothing will be showed). (setq doom-modeline-icon t) -;; Whether show the icon for major mode. It respects `doom-modeline-icon'. +;; Whether display the icon for major mode. It respects `doom-modeline-icon'. (setq doom-modeline-major-mode-icon t) ;; Display color icons for `major-mode'. It respects `all-the-icons-color-icons'. -(setq doom-modeline-major-mode-color-icon nil) +(setq doom-modeline-major-mode-color-icon t) ;; Whether display minor modes or not. Non-nil to display in mode-line. (setq doom-modeline-minor-modes nil) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index b272c00..95261ff 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -93,7 +93,7 @@ The icons may not be showed correctly in terminal.") (defvar doom-modeline-major-mode-icon t "Whether show the icon for major mode. It respects `doom-modeline-icon'.") -(defvar doom-modeline-major-mode-color-icon nil +(defvar doom-modeline-major-mode-color-icon t "Display color icons for `major-mode'. It respects `all-the-icons-color-icons'.") (defvar doom-modeline-minor-modes nil diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 3953b0f..182a6c7 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -206,10 +206,10 @@ buffer where knowing the current project directory is important." (all-the-icons-match-to-alist buffer-file-name all-the-icons-icon-alist)) (unless (string-empty-p file) - (doom-modeline-icon-for-file file :height height)) - (doom-modeline-icon-for-mode major-mode :height height)))) + (doom-modeline-icon-for-file file :height height :v-adjust -0.05)) + (doom-modeline-icon-for-mode major-mode :height height :v-adjust -0.05)))) (if (symbolp icon) - (setq icon (doom-modeline-icon-faicon "file-o" :height height :v-adjust -0.0575))) + (setq icon (doom-modeline-icon-faicon "file-o" :face 'all-the-icons-dsilver :height height :v-adjust -0.05))) (unless (symbolp icon) (propertize icon 'help-echo (format "Major-mode: %s" (format-mode-line mode-name))