mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-25 19:25:39 +00:00
Add customization: doom-modeline-enable-word-count.
This commit is contained in:
parent
e1f0610316
commit
17d197d9a7
3 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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.")
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue