diff --git a/README.md b/README.md index d79dfa2..1af4796 100644 --- a/README.md +++ b/README.md @@ -203,22 +203,22 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables. ;; Please refer to https://github.com/bbatsov/projectile/issues/657. (setq doom-modeline-buffer-file-name-style 'auto) -;; Whether display icons in the mode-line. Respects `all-the-icons-color-icons'. +;; Whether display icons in the mode-line. ;; While using the server mode in GUI, should set the value explicitly. (setq doom-modeline-icon (display-graphic-p)) -;; Whether display the icon for `major-mode'. Respects `doom-modeline-icon'. +;; Whether display the icon for `major-mode'. It respects `doom-modeline-icon'. (setq doom-modeline-major-mode-icon t) ;; Whether display the colorful icon for `major-mode'. -;; Respects `doom-modeline-major-mode-icon'. +;; It respects `all-the-icons-color-icons'. (setq doom-modeline-major-mode-color-icon t) ;; Whether display the icon for the buffer state. It respects `doom-modeline-icon'. (setq doom-modeline-buffer-state-icon t) ;; Whether display the modification icon for the buffer. -;; Respects `doom-modeline-icon' and `doom-modeline-buffer-state-icon'. +;; It respects `doom-modeline-icon' and `doom-modeline-buffer-state-icon'. (setq doom-modeline-buffer-modification-icon t) ;; Whether to use unicode as a fallback (instead of ASCII) when not using icons. diff --git a/doom-modeline-core.el b/doom-modeline-core.el index eca8cc3..bdc10e7 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -210,7 +210,6 @@ Given ~/Projects/FOSS/emacs/lisp/comint.el (defcustom doom-modeline-icon (display-graphic-p) "Whether display the icons in the mode-line. -It respects `all-the-icons-color-icons'. While using the server mode in GUI, should set the value explicitly." :type 'boolean :group 'doom-modeline) @@ -225,7 +224,7 @@ It respects `doom-modeline-icon'." (defcustom doom-modeline-major-mode-color-icon t "Whether display the colorful icon for `major-mode'. -It respects `doom-modeline-major-mode-icon'." +It respects `all-the-icons-color-icons'." :type 'boolean :group'doom-modeline) @@ -874,9 +873,9 @@ See https://github.com/seagle0128/doom-modeline/issues/301." (family (plist-get props :family)) (height (plist-get props :height)) (face (or face (plist-get props :inherit))) - (new-face (append `(:inherit ,face) - `(:family ,family) - `(:height ,height)))) + (new-face `(:inherit ,face + :family ,family + :height ,height))) (propertize icon 'face new-face))) (defun doom-modeline-icon (icon-set icon-name unicode text &rest args)