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

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

[elpa] master bdd9814 1/2: captain.el: Changed default predicate to enab


From: Ian Dunn
Subject: [elpa] master bdd9814 1/2: captain.el: Changed default predicate to enable capitalization
Date: Tue, 5 Sep 2017 20:21:42 -0400 (EDT)

branch: master
commit bdd98149a902b6ce5b820b362c8cc685aeedc695
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>

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

diff --git a/packages/captain/captain.el b/packages/captain/captain.el
index 8c019e0..6cee86c 100644
--- a/packages/captain/captain.el
+++ b/packages/captain/captain.el
@@ -5,7 +5,7 @@
 ;; Author: Ian Dunn <address@hidden>
 ;; Maintainer: Ian Dunn <address@hidden>
 ;; 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]