From a3601ca1d84c4c48bbbdd36f8c293bebfe9edc09 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 13 Aug 2021 17:06:36 -0500 Subject: Edit `acdw-org/count-words-stupidly' to be even MOAR stupider --- init.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 68683cb..69aafac 100644 --- a/init.el +++ b/init.el @@ -1498,14 +1498,18 @@ if ripgrep is installed, otherwise `consult-grep'." (setup (:straight wc-mode) ; TODO: move some of this stuff around (:option wc-modeline-format "[%tww]" - wc-idle-wait 1) + wc-idle-wait 0) (:hook-into text-mode) (add-hook 'org-mode-hook (defun org-mode@wc-stupid () - (setq-local wc-count-words-function - #'acdw-org/count-words-stupidly))) + (setq-local + wc-count-words-function + (lambda (start end) "Count words stupidly with a limit." + (acdw-org/count-words-stupidly start + end + 999))))) (defun acdw-modeline/wc () "Display current `wc-buffer-stats'." -- cgit 1.4.1-21-gabe81