about summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-08-12 21:05:48 -0500
committerCase Duckworth2021-08-12 21:05:48 -0500
commitdc1284c5baa22cfb8e6895c221fdc2eee42318ad (patch)
treee9aa19ab780b33b59029155897a081f56b96c5f5 /init.el
parentCorrect simple-modeline--format for olivetti-mode, etc. (diff)
downloademacs-dc1284c5baa22cfb8e6895c221fdc2eee42318ad.tar.gz
emacs-dc1284c5baa22cfb8e6895c221fdc2eee42318ad.zip
Only show wc mode-line in wc-mode
Diffstat (limited to 'init.el')
-rw-r--r--init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.el b/init.el index 7befda5..7e2c1ea 100644 --- a/init.el +++ b/init.el
@@ -1511,7 +1511,8 @@ if ripgrep is installed, otherwise `consult-grep'."
1511 1511
1512 (defun acdw-modeline/wc () 1512 (defun acdw-modeline/wc ()
1513 "Display current `wc-buffer-stats'." 1513 "Display current `wc-buffer-stats'."
1514 (or wc-buffer-stats "[w]"))) 1514 (when wc-mode
1515 (or wc-buffer-stats "[w]"))))
1515 1516
1516(setup (:straight web-mode) 1517(setup (:straight web-mode)
1517 (:option css-level-offset 2 1518 (:option css-level-offset 2