[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2ad349c 2/2: captain.el: Reverted last commit
From: |
Ian Dunn |
Subject: |
[elpa] master 2ad349c 2/2: captain.el: Reverted last commit |
Date: |
Tue, 5 Sep 2017 20:32:46 -0400 (EDT) |
branch: master
commit 2ad349c99031349f70cd51d8f9f5c1f4bc0bfe83
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
captain.el: Reverted last commit
* captain.el (captain-predicate): Use nil by default, and add documentation
explaining why.
---
packages/captain/captain.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/packages/captain/captain.el b/packages/captain/captain.el
index 6cee86c..90cd9ad 100644
--- a/packages/captain/captain.el
+++ b/packages/captain/captain.el
@@ -53,7 +53,7 @@
(eval-when-compile (require 'subr-x))
(require 'thingatpt)
-(defvar-local captain-predicate (lambda () t)
+(defvar-local captain-predicate nil
"Predicate to check for whether auto-capitalization should be handled.
Should be a function of no arguments, and return non-nil if
@@ -62,7 +62,9 @@ auto-capitalization should be performed at the current point.
For example, this could be a function to check if point is in a
comment.
-By default, this is a function that returns t.")
+This is nil by default to avoid automatic capitalization
+happening everywhere, so to start using captain, set it to a
+function of your choosing.")
(defun captain-should-capitalize-p ()
"Return non-nil if the captain should auto-capitalize your work."