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

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

[elpa] master 06beed8 2/4: captain: Change abbrev table to be case sensi


From: Ian Dunn
Subject: [elpa] master 06beed8 2/4: captain: Change abbrev table to be case sensitive
Date: Sun, 8 Oct 2017 13:07:13 -0400 (EDT)

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

    captain: Change abbrev table to be case sensitive
    
    This should avoid `expand-region-abbrevs' attempting to expand "Name" to 
"Name".
    
    * packages/captain/captain.el (captain-mode-abbrev-table): Make case-fixed 
by
      default.
---
 packages/captain/captain.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages/captain/captain.el b/packages/captain/captain.el
index 7fba719..a20c04e 100644
--- a/packages/captain/captain.el
+++ b/packages/captain/captain.el
@@ -153,8 +153,12 @@ him you want capitalized with `captain-capitalize-word'.
 ;; Support for capitalizing individual words automatically
 
 (define-abbrev-table 'captain-mode-abbrev-table nil
-  "Abbrev table where words that should be automatically capitalized are 
stored."
-  :enable-function #'captain-should-capitalize-p)
+  "Abbrev table where words that should be automatically capitalized are 
stored.
+
+This is case sensitive by default so `expand-region-abbrevs'
+won't keep trying to expand \"Name\" to \"Name\"."
+  :enable-function #'captain-should-capitalize-p
+  :case-fixed t)
 
 ;; Only enable the abbrev table when captain-mode is active
 (add-to-list 'abbrev-minor-mode-table-alist



reply via email to

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