[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Abbrev suggestions - feedback appreciated
From: |
Ian Dunn |
Subject: |
Re: Abbrev suggestions - feedback appreciated |
Date: |
Sun, 08 Oct 2017 12:38:26 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) |
>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:
>> 2. Having this be controlled by some property of abbrev tables
>> and/or abbrevs themselves would be ideal, similar to the
>> case-fixed property. That way the expansions of auto-correct[1]
>> and captain[2] abbrevs won't nag people all the time.
>>
>> [1] https://elpa.gnu.org/packages/auto-correct.html [2]
>> https://elpa.gnu.org/packages/captain.html
Stefan> For Captain, the abbrev and its "expansion" should have the
Stefan> same length, so absug-hint-threshold should already skip
Stefan> them.
Stefan> For auto-correct, it might be the case that the wrong
Stefan> spelling is shorter by absug-hint-threshold, but then you
Stefan> could also argue that if you often misspell a word and it
Stefan> gets auto-corrected and the wrong spelling is shorter, you
Stefan> might take it as a feature and consciously use the
Stefan> shorter/wrong spelling and rely on the abbrev to auto
Stefan> correct it.
I stand corrected. My only other suggestion would be to use add-function on
abbrev-expand-function instead of setting it directly to avoid overwriting
other packages that may need it. Something like the following:
binOWE2uH90It.bin
Description: application/emacs-lisp
--
Ian Dunn