Display minor modes if minions is installed.

This commit is contained in:
Vincent Zhang 2019-08-12 22:46:30 +08:00
parent 777390f00b
commit a6145d435a
3 changed files with 4 additions and 3 deletions

View file

@ -164,7 +164,7 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables.
(setq doom-modeline-buffer-file-name-style 'truncate-upto-project) (setq doom-modeline-buffer-file-name-style 'truncate-upto-project)
;; Whether display icons in mode-line or not. ;; Whether display icons in mode-line or not.
(setq doom-modeline-icon t) (setq doom-modeline-icon (display-graphic-p))
;; Whether display 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) (setq doom-modeline-major-mode-icon t)
@ -181,7 +181,7 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables.
(setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-buffer-modification-icon t)
;; Whether display minor modes in mode-line or not. ;; Whether display minor modes in mode-line or not.
(setq doom-modeline-minor-modes nil) (setq doom-modeline-minor-modes (featurep 'minions))
;; If non-nil, a word count will be added to the selection-info modeline segment. ;; If non-nil, a word count will be added to the selection-info modeline segment.
(setq doom-modeline-enable-word-count nil) (setq doom-modeline-enable-word-count nil)

View file

@ -206,7 +206,7 @@ If the actual char height is larger, it respects the actual char height."
:type 'boolean :type 'boolean
:group 'doom-modeline) :group 'doom-modeline)
(defcustom doom-modeline-minor-modes nil (defcustom doom-modeline-minor-modes (featurep 'minions)
"Whether display minor modes in mode-line or not." "Whether display minor modes in mode-line or not."
:type 'boolean :type 'boolean
:group 'doom-modeline) :group 'doom-modeline)

View file

@ -159,6 +159,7 @@
(declare-function mu4e-alert-default-mode-line-formatter 'mu4e-alert) (declare-function mu4e-alert-default-mode-line-formatter 'mu4e-alert)
(declare-function mu4e-alert-enable-mode-line-display 'mu4e-alert) (declare-function mu4e-alert-enable-mode-line-display 'mu4e-alert)
(declare-function nyan-create 'nyan-mode) (declare-function nyan-create 'nyan-mode)
(declare-function org-edit-src-save 'org-src)
(declare-function org-narrow-to-block 'org) (declare-function org-narrow-to-block 'org)
(declare-function org-narrow-to-element 'org) (declare-function org-narrow-to-element 'org)
(declare-function org-narrow-to-subtree 'org) (declare-function org-narrow-to-subtree 'org)