diff options
author | Case Duckworth | 2021-08-17 17:26:53 -0500 |
---|---|---|
committer | Case Duckworth | 2021-08-17 17:26:53 -0500 |
commit | ab152ff6b2d8d1bb545d7fa7e675fc45d2e02a4d (patch) | |
tree | 2a4868c0d29816f4a222d61fa93d3d023a2d7d35 | |
parent | Reconfigure flyspell (diff) | |
download | emacs-ab152ff6b2d8d1bb545d7fa7e675fc45d2e02a4d.tar.gz emacs-ab152ff6b2d8d1bb545d7fa7e675fc45d2e02a4d.zip |
Re-enable limit on word count
-rw-r--r-- | init.el | 6 |
1 files 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." | |||
1306 | (add-hook 'org-mode-hook | 1306 | (add-hook 'org-mode-hook |
1307 | (defun org-mode@wc-stupid () | 1307 | (defun org-mode@wc-stupid () |
1308 | (unless (and wc-mode | 1308 | (unless (and wc-mode |
1309 | (> 0 (+ wc-orig-words wc-words-delta)))) | 1309 | (> 0 (+ (or wc-orig-words 0) |
1310 | (or wc-words-delta 0))))) | ||
1310 | (setq-local | 1311 | (setq-local |
1311 | wc-count-words-function | 1312 | wc-count-words-function |
1312 | (lambda (start end) "Count words stupidly with a limit." | 1313 | (lambda (start end) "Count words stupidly with a limit." |
1313 | (acdw-org/count-words-stupidly start | 1314 | (acdw-org/count-words-stupidly start |
1314 | end | 1315 | end |
1315 | ;999 | 1316 | 999))))) |
1316 | ))))) | ||
1317 | 1317 | ||
1318 | (setup (:straight org-appear) | 1318 | (setup (:straight org-appear) |
1319 | (:hook-into org-mode))) | 1319 | (:hook-into org-mode))) |