diff --git a/README.md b/README.md index 7a11798..e6f0d64 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,9 @@ Strongly recommend to use ;; Whether display minor modes or not. Non-nil to display in mode-line. (setq doom-modeline-minor-modes nil) +;; If non-nil, a word count will be added to the selection-info modeline segment. +(setq doom-modeline-enable-word-count nil) + ;; Whether display perspective name or not. Non-nil to display in mode-line. (setq doom-modeline-persp-name t) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 82fc719..f272fcd 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -104,6 +104,9 @@ The icons may not be showed correctly in terminal and on Windows.") (defvar doom-modeline-minor-modes nil "Whether display minor modes or not. Non-nil to display in mode-line.") +(defvar doom-modeline-enable-word-count nil + "If non-nil, a word count will be added to the selection-info modeline segment.") + (defvar doom-modeline-persp-name t "Whether display perspective name or not. Non-nil to display in mode-line.") diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 4341df3..6b3c7af 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -841,10 +841,6 @@ icons." (save-excursion (goto-char pos) (current-column))) -(defvar-local doom-modeline-enable-word-count nil - "If non-nil, a word count will be added to the selection-info modeline -segment.") - (doom-modeline-def-segment selection-info "Information about the current selection, such as how many characters and lines are selected, or the NxM dimensions of a block selection."