From a6145d435ae380dbbff4d148e3c200b89a60d010 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 12 Aug 2019 22:46:30 +0800 Subject: [PATCH] Display minor modes if minions is installed. --- README.md | 4 ++-- doom-modeline-core.el | 2 +- doom-modeline-segments.el | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32a0077..5a3a445 100644 --- a/README.md +++ b/README.md @@ -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) ;; 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'. (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) ;; 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. (setq doom-modeline-enable-word-count nil) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 2bada42..fd5a0ae 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -206,7 +206,7 @@ If the actual char height is larger, it respects the actual char height." :type 'boolean :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." :type 'boolean :group 'doom-modeline) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index ea11f7e..4cc4ee9 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -159,6 +159,7 @@ (declare-function mu4e-alert-default-mode-line-formatter 'mu4e-alert) (declare-function mu4e-alert-enable-mode-line-display 'mu4e-alert) (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-element 'org) (declare-function org-narrow-to-subtree 'org)