Commit graph

27 commits

Author SHA1 Message Date
Henrik Lissner
518c97a2ac
Rename {if,when}! -> eval-{if,when}!
To better represent its purpose, as extensions to Emacs' eval-when*
API (for control flow at compile time).
2020-08-27 01:10:08 -04:00
Henrik Lissner
bfd71a8bb9
Fix #3827: void-variable flyspell-delayed-commands
This occurs in org-compat.el:

  (eval-after-load "flyspell"
    '(add-to-list 'flyspell-delayed-commands 'org-self-insert-command))

By not using a package symbol, this code runs whenever any file named
flyspell.el is loaded. Guess what one of the :checkers spell module's
autoloads files is named? flyspell.el
2020-08-26 19:33:24 -04:00
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
2c435a04cf
Bump :checkers
d12frosted/flyspell-correct@fd8ac7a -> d12frosted/flyspell-correct@dea1290
flycheck/flycheck@246e1d4 -> flycheck/flycheck@c02cd77
mhayashi1120/Emacs-langtool@a71ed02 -> mhayashi1120/Emacs-langtool@8276ecc
2020-07-23 01:31:36 -04:00
Samuel Culpepper
cda1d0f81c
Fix typo in checkers/spell/README 2020-07-21 13:53:11 +02:00
pancho horrillo
bd3f89ab3c Fix typo in modules/checkers/spell/README.org 2020-07-13 07:30:47 +02:00
Renato Lacerda
a0e4219a32
:checkers spell documentation (#3462)
* :checkers spell documentation

* Fix based on changes

Fix date and version
Create TOC
Remove indentation
Remove blank lines
Hard-wrapped paragraphs
Remove comments
2020-07-12 22:11:39 -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
8b5525049d
Bump :checkers
d12frosted/flyspell-correct@e765d1a -> d12frosted/flyspell-correct@fd8ac7a
flycheck/flycheck@f19a51c -> flycheck/flycheck@246e1d4

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-04-30 01:28:02 -04:00
Henrik Lissner
169f9a6121
General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
Henrik Lissner
e46cd73f3d
Bump :checkers spell
d12frosted/flyspell-correct@b0353a4 -> d12frosted/flyspell-correct@e765d1a
2020-02-29 12:34:28 -05: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
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -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
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -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