emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/captain 949b6ad 02/11: captain.el: Changed default pred


From: Stefan Monnier
Subject: [elpa] externals/captain 949b6ad 02/11: captain.el: Changed default predicate to enable capitalization
Date: Tue, 1 Dec 2020 15:22:46 -0500 (EST)

branch: externals/captain
commit 949b6ad7d4c380e8feb37f56f1aa34e3ff62a166
Author: Ian Dunn <dunni@gnu.org>
Commit: Ian Dunn <dunni@gnu.org>

    captain.el: Changed default predicate to enable capitalization
---
 captain.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/captain.el b/captain.el
index 8c019e0..6cee86c 100644
--- a/captain.el
+++ b/captain.el
@@ -5,7 +5,7 @@
 ;; Author: Ian Dunn <dunni@gnu.org>
 ;; Maintainer: Ian Dunn <dunni@gnu.org>
 ;; Keywords: editing
-;; Version: 1.0
+;; Version: 1.0.1
 
 ;; This file is part of GNU Emacs.
 
@@ -53,14 +53,16 @@
 (eval-when-compile (require 'subr-x))
 (require 'thingatpt)
 
-(defvar-local captain-predicate nil
+(defvar-local captain-predicate (lambda () t)
   "Predicate to check for whether auto-capitalization should be handled.
 
 Should be a function of no arguments, and return non-nil if
 auto-capitalization should be performed at the current point.
 
 For example, this could be a function to check if point is in a
-comment.")
+comment.
+
+By default, this is a function that returns t.")
 
 (defun captain-should-capitalize-p ()
   "Return non-nil if the captain should auto-capitalize your work."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]