seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.3k stars 158 forks source link

Option to easily disable character count #362

Closed alienbogart closed 4 years ago

alienbogart commented 4 years ago

Is your feature request related to a problem? Please describe. The option doom-modeline-enable-word-count controls the displaying of word count in some buffers. I wonder if it would be possible to have the same for character count. Notice that I'm referring to overall character count, not the count for visual mode.

Describe the solution you'd like A variable such as doom-modeline-enable-character-count to enable/disable character count in the modeline.

Describe alternatives you've considered I suppose I could use the doom-modeline-def-modeline function to customize it completely, but this seems like a lot of effort for something like that. I also wonder if too many customizations might impact startup.

Additional context

Output of doom info:

((emacs
  (version . "27.0.91")
  (features . "RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP")
  (build . "May 14, 2020")
  (buildopts "--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-747e0a2/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-747e0a2 --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-json --with-modules --with-rsvg --with-ns --disable-ns-self-contained")
  (windowsys . batch)
  (daemonp))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop 00ebbafb 2020-06-25 15:27:26 -0400")
  (dir . "~/.doom.d/"))
 (system
  (type . darwin)
  (config . "x86_64-apple-darwin18.7.0")
  (shell . "/usr/local/bin/bash")
  (uname . "Darwin 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64")
  (path "/usr/local/opt/openjdk/bin" "~/.pyenv/shims" "~/.pyenv/bin" "~/.local/bin" "~/.emacs.d/bin" "~/scripts/bin" "~/.nimble/bin" "~/scripts/cline_scripts/" "~/.emacs.d/bin" "/usr/local/opt/sqlite/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Library/TeX/texbin" "/opt/X11/bin" "/Library/Frameworks/Mono.framework/Versions/Current/Commands" "~/.fzf/bin" "/usr/local/Cellar/emacs-plus/HEAD-747e0a2/libexec/emacs/27.0.91/x86_64-apple-darwin18.7.0"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company (ivy +prescient) :ui doom modeline (popup +defaults) treemacs :editor (evil +everywhere) fold multiple-cursors snippets word-wrap :emacs (dired +ranger) electric undo vc :term eshell shell :checkers syntax spell grammar :tools eval (lookup +dictionary +offline) pdf :lang markdown (org +pomodoro +brain +pandoc) :config (default +bindings +smartparens))
  (packages (elpy) (delight) (olivetti) (org2blog) (eyebrowse) (super-save) (hl-sentence) (evil-god-state) (google-translate) (electric-operator) (git-auto-commit-mode) (apheleia :recipe (:host github :repo "raxod502/apheleia")) (typo) (clipmon) (wordnut) (pabbrev) (org-brain) (which-key) (engine-mode) (lorem-ipsum) (fountain-mode) (evil-swap-keys) (artbollocks-mode) (evil-smartparens) (evil-better-visual-line) (zoom :disable t) (beacon :disable t) (nswbuff :disable t) (shut-up :disable t) (elmacro :disable t) (org-roam :disable t) (polymode :disable t) (yafolding :disable t) (evil-lion :disable t) (bug-hunter :disable t) (evil-snipe :disable t) (vimrc-mode :disable t) (ivy-yasnippet :disable t) (org-web-tools :disable t) (benchmark-init :disable t) (recursive-narrow :disable t) (unkillable-scratch :disable t))
  (unpin "n/a")
  (elpa "n/a")))
alienbogart commented 4 years ago

That was easy. (size-indication-mode -1) disables that. Sorry for the trouble. Closing the issue.