From ab152ff6b2d8d1bb545d7fa7e675fc45d2e02a4d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 17 Aug 2021 17:26:53 -0500 Subject: Re-enable limit on word count --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index c50b089..1224930 100644 --- a/init.el +++ b/init.el @@ -1306,14 +1306,14 @@ successive invocations." (add-hook 'org-mode-hook (defun org-mode@wc-stupid () (unless (and wc-mode - (> 0 (+ wc-orig-words wc-words-delta)))) + (> 0 (+ (or wc-orig-words 0) + (or wc-words-delta 0))))) (setq-local wc-count-words-function (lambda (start end) "Count words stupidly with a limit." (acdw-org/count-words-stupidly start end - ;999 - ))))) + 999))))) (setup (:straight org-appear) (:hook-into org-mode))) -- cgit 1.4.1-21-gabe81