about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-08-13 08:29:16 -0500
committerCase Duckworth2021-08-13 08:29:16 -0500
commit8a9cfd8b41bfe9fa66bb2a637b0543f1f1f51f8b (patch)
treec44e0604f8f4ff7fdd47b739ee61b757768d548b
parentUndo earlier change with ERC message types (diff)
downloademacs-8a9cfd8b41bfe9fa66bb2a637b0543f1f1f51f8b.tar.gz
emacs-8a9cfd8b41bfe9fa66bb2a637b0543f1f1f51f8b.zip
Provide for when wc-mode isn't bound yet
-rw-r--r--init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.el b/init.el index 7ba3721..68683cb 100644 --- a/init.el +++ b/init.el
@@ -1509,7 +1509,7 @@ if ripgrep is installed, otherwise `consult-grep'."
1509 1509
1510 (defun acdw-modeline/wc () 1510 (defun acdw-modeline/wc ()
1511 "Display current `wc-buffer-stats'." 1511 "Display current `wc-buffer-stats'."
1512 (when wc-mode 1512 (when (bound-and-true-p wc-mode)
1513 (or wc-buffer-stats "[w]")))) 1513 (or wc-buffer-stats "[w]"))))
1514 1514
1515(setup (:straight web-mode) 1515(setup (:straight web-mode)