branch: master
commit d60cd1f6ad5d7b84bae3321d8929d28f2f99ddc8
Author: Ian Dunn <[email protected]>
Commit: Ian Dunn <[email protected]>
auto-correct.el: Reverted last commit
* auto-correct.el (auto-correct-predicate): Use nil by default because it's
more
convenient to explicitly enable auto-correct rather than disable it
everywhere.
---
packages/auto-correct/auto-correct.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/auto-correct/auto-correct.el
b/packages/auto-correct/auto-correct.el
index 516d5e7..73b41a4 100644
--- a/packages/auto-correct/auto-correct.el
+++ b/packages/auto-correct/auto-correct.el
@@ -75,13 +75,13 @@
;; Core Functionality
-(defvar-local auto-correct-predicate (lambda () t)
+(defvar-local auto-correct-predicate nil
"Predicate to check whether automatic corrections should be made.
This should be a function of no arguments that returns non-nil if
auto-correct should operate on the current text.
-By default, this is a function that returns t.")
+This is nil by default so auto-correct must be explicitly enabled.")
(defun auto-correct-expand-p ()
"Return non-nil if auto-correct should operate on the current point.