mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Refactor.
This commit is contained in:
parent
8e1cc53b8c
commit
d009633729
2 changed files with 8 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue