Commit graph

17 commits

Author SHA1 Message Date
Yoav Marco
c0a3c6f977 Add latex faces to +spell-excluded-faces-alist 2020-08-24 16:16:19 +03:00
Henrik Lissner
e3750dbf66
checkers/spell: add +flyspell flag
spell-fu lacks support for multiple dictionaries, affix expansion, and
many non-English dictionaries, so I've added back flyspell support to
the spell module, but opt-in, because it is still the significantly
slower option and spell-fu may support them one day.

If not, tlikonen/wcheck-mode is another alternative to consider.

Fixes #3813
2020-08-23 18:48:50 -04:00
Henrik Lissner
c497cdabc7
checkers/spell: fix z=, zq, zw & personal dictionary
+ Fixes ispell not noticing allowed words in your personal dictionary.
  So +spell/correct would sometimes correct words that spell-fu wasn't
  highlighting as incorrect, and sometimes wouldn't correct words that
  were.
+ Fixes spell-fu refusing to read or write to the personal dictionary if
  the file didn't already exist beforehand (for zq and zw).
+ Change ispell-dictionary fallback from "en_US" (which aspell won't
  always recognize) to "en".
+ Moved ispell-personal-dictionary to ~/.emacs.d/.local/etc/ispell/ by
  default.
2020-08-23 02:32:58 -04:00
Henrik Lissner
d393d3e0cd
checkers/spell: add doctor.el; no-op without aspell
Aspell is a hard dependency of this module, even if you use hunspell as
a backend. The spellchecker will simply bow out if aspell isn't present
on your system at startup.
2020-08-21 22:01:50 -04:00
Henrik Lissner
ff9c1ace22
checkers/spell: replace flyspell with spell-fu
Spell-fu is significantly faster, but does produce more false
positives (more faces must be added to spell-fu-faces-exclude to reduce
these).

Unfortunately, there is no fancy "correction" interface for spell-fu
yet, so we'll have to resort to ispell-word (on z=) for now.
2020-08-21 18:57:10 -04:00
Henrik Lissner
7ecda0d8e7
checkers/spell: fix end-of-file error
Closes #3300
2020-06-05 04:05:29 -04:00
Henrik Lissner
5b8b04f0c8
Properly lazy load flyspell
Package was eagerly loaded at startup, so we must pretend it hasn't to
defer it and future configuration.

And generalize defer-feature! macro.
2020-06-05 01:41:49 -04:00
Henrik Lissner
8bf902d5f4
General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
46c1f7a7b4
Fix #3282: activate flyspell-lazy-mode 2020-06-02 23:18:01 -04:00
Troy Hinckley
00ddb2eba6 Only rebind ispell-word if flyspell-correct is enabled
flyspell-correct-at-point is not defined unless the the spell module is
enabled.
2020-05-16 22:33:33 -06:00
Henrik Lissner
169f9a6121
General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
Xuan Bi
7f6876d85b Enable flyspell in git-commit-mode 2020-02-13 18:09:09 +08:00
Henrik Lissner
ef472d7c1a
Add flyspell-lazy package
To hopefully speed up flyspell.
2020-02-08 20:43:29 -05:00
Geographer
b2e6a069f0 Move an aspell specific argument to appropriate block 2020-01-23 10:52:44 +00:00
Henrik Lissner
206d0d9d92
Prevent flycheck-correct if region/insert mode is active 2020-01-20 22:23:40 -05:00
Henrik Lissner
fb24a8deec
Activate flyspell-mode in specific modes
yaml-mode is derived from text-mode, rather than prog or conf-mode. This
may be true for other major modes, so we must be more judicious about
where we activate flyspell-mode.
2020-01-20 19:31:35 -05:00
Henrik Lissner
b89992624b
Move :tools fly{check,spell} to :checkers {syntax,spell}
These modules were renamed so we can later generalize their
implementations, such as adding flymake support to the syntax checker.
2020-01-09 22:56:26 -05:00
Renamed from modules/tools/flyspell/config.el (Browse further)