[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."
- [elpa] branch externals/captain created (now 574439a), Stefan Monnier, 2020/12/01
- [elpa] externals/captain 3ada93d 01/11: Added captain package, Stefan Monnier, 2020/12/01
- [elpa] externals/captain 949b6ad 02/11: captain.el: Changed default predicate to enable capitalization,
Stefan Monnier <=
- [elpa] externals/captain 66584d2 04/11: captain: Change default predicate to a function, and call it unconditionally, Stefan Monnier, 2020/12/01
- [elpa] externals/captain 072c330 05/11: captain: Change abbrev table to be case sensitive, Stefan Monnier, 2020/12/01
- [elpa] externals/captain 574439a 11/11: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/captain 956e040 08/11: captain: Added examples for setting captain-predicate to commentary, Stefan Monnier, 2020/12/01
- [elpa] externals/captain db93857 10/11: Updated copyright on auto-correct, captain, and vigenere, Stefan Monnier, 2020/12/01
- [elpa] externals/captain 49c3e29 03/11: captain.el: Reverted last commit, Stefan Monnier, 2020/12/01
- [elpa] externals/captain a341d4c 09/11: captain: Bumped version to 1.0.3, Stefan Monnier, 2020/12/01
- [elpa] externals/captain 2cb4569 07/11: captain: Bumped version, Stefan Monnier, 2020/12/01
- [elpa] externals/captain e167b64 06/11: captain: Fix docstring of captain-predicate to reflect recent change, Stefan Monnier, 2020/12/01