[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu 30be3683b2 12/86: readme: update settings docs
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu 30be3683b2 12/86: readme: update settings docs |
Date: |
Thu, 7 Jul 2022 12:03:39 -0400 (EDT) |
branch: elpa/spell-fu
commit 30be3683b28ea182f5afb4fbc16da55fecf5961b
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
readme: update settings docs
---
readme.rst | 66 +++++++++++++++++++++++++++++++++++++++++---------------------
1 file changed, 44 insertions(+), 22 deletions(-)
diff --git a/readme.rst b/readme.rst
index 4ea7899570..d07bc504d7 100644
--- a/readme.rst
+++ b/readme.rst
@@ -27,36 +27,43 @@ Usage
You may enable this globally which has the following defaults.
-- Programming modes spell check comments and strings.
-- All other major modes check all words.
-
.. code-block:: elisp
- ;; This package has not yet been accepted into melpa.
- (use-package spell-fu)
+ (use-package spell-fu) ;; not yet in Melpa.
+
(global-spell-fu-mode)
Or you may wish to configure this per-mode, e.g:
.. code-block:: elisp
- (use-package spell-fu)
+ (use-package spell-fu) ;; not yet in Melpa.
(add-hook 'org-mode-hook
(lambda ()
(setq spell-fu-faces-exclude '(org-meta-line org-link org-code))
(spell-fu-mode)))
+ (add-hook 'emacs-lisp-mode-hook
+ (lambda ()
+ (spell-fu-mode)))
+
Details
-------
+- All programming modes only check comments and strings.
+- All other major modes check all words.
- Currently this package requires ``aspell`` to generate the word-list.
Customization
-------------
+
+Global Settings
+^^^^^^^^^^^^^^^
+
``spell-fu-directory``
The directory used for storing the dictionary cached.
@@ -69,7 +76,13 @@ Customization
``spell-fu-incorrect-face`` (red, underline)
The font to use for the spell checking overlay.
-``spell-fu-syntax-table`` (buffer-local)
+
+Buffer Local Settings
+^^^^^^^^^^^^^^^^^^^^^
+
+You may wish to set these values differently based on the current major-mode.
+
+``spell-fu-syntax-table``
The syntax table used for spell-checking.
Useful when the current syntax-table for a major-mode is set for a
programming language
@@ -84,6 +97,13 @@ Customization
``spell-fu-faces-exclude``
When not ``nil``, text with faces in this list will be excluded.
+
+Advanced Buffer Local Settings
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+These options allow for applying your own rules to how the spell checker runs,
+they aren't necessary for typical usage.
+
``spell-fu-check-range``
This is the main function which checks words,
in most cases this can be left at it's default.
@@ -98,15 +118,17 @@ Customization
Note that setting this function causes the following settings to be ignored:
- - ``spell-fu-word-regexp``
- ``spell-fu-faces-include``
- ``spell-fu-faces-exclude``
+ - ``spell-fu-word-regexp``
+ - ``spell-fu-syntax-table``
Other Settings
--------------
-Some settings are used which aren't part of this package:
+In most cases there is no need to change these settings,
+however they will be used when set:
``ispell-program-name``
Used to call aspell (when this points to ``aspell``, otherwise ``aspell``
is called).
@@ -119,22 +141,21 @@ Some settings are used which aren't part of this package:
When generating the word-list, this file is included when present.
-Limitations
-===========
-
-TODO.
-
-
-Installation
-============
-
-TODO.
-
-
Other Packages
==============
-TODO.
+`FlySpell <https://www.emacswiki.org/emacs/FlySpell>`__
+ As of Emacs 28, this doesn't provide a way to automatically check all
on-screen text,
+ and running this on an entire buffer can be slow.
+
+`WCheck Mode <https://github.com/tlikonen/wcheck-mode>`__
+ This is a close match to Spell-fu, the main differences is that it's
calling a sub-process
+ on each word which gives slower results.
+ I also found it's configuration rather difficult to manage.
+
+ Spell-fu in contrast takes a different approach,
+ instead of exposing many advanced options,
+ you can set your own function to extract works from a region of text.
TODO
@@ -143,3 +164,4 @@ TODO
- Support alternates to ``aspell`` for generating word lists.
- Support a custom command for generating a word list.
- Support buffer local dictionaries.
+- Support going to next/previous misspelled word.
- [nongnu] elpa/spell-fu 33a28e0df5 41/86: fix: encode word to utf-8 generating the cache, (continued)
- [nongnu] elpa/spell-fu 33a28e0df5 41/86: fix: encode word to utf-8 generating the cache, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 7770c005c4 47/86: Cleanup minor name change for spell-fu function name, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 866044304f 50/86: Check if faces can be used on property change, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 8f780a874c 66/86: Reduce idle overlay fragmentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 4fc84a9028 69/86: Fix spell-fu-directory's documentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 53bd2b24c6 81/86: Cleanup: add spell-fu--canonicalize-word utility function, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu a5a06e150a 02/86: Fix error comparing times of cache to word-list, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu bd00417a0e 09/86: Improve status messages when generating word-list & cache, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu afeb1fd46f 10/86: readme: add some TODO's, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu b7e5cf3d73 11/86: Fix missing checks that ispell variables are bound before use, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 30be3683b2 12/86: readme: update settings docs,
ELPA Syncer <=
- [nongnu] elpa/spell-fu 18724c2e53 14/86: Avoid potentially accessing the same files time multiple times, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 8e8711f1fa 22/86: Add TODO's to the readme, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 88d803e994 26/86: Cleanup: use updated auto-formatting results, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu db0eef27ab 33/86: Add: spell-fu-goto-next-error, spell-fu-goto-previous-error, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu a7db587471 36/86: Remove redundant escaping, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu c58be13845 39/86: Fix #3 default word regex now excludes trailing apostrophes, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 98424adbea 42/86: adds helper routine to get lang from dict, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 143233734a 46/86: Allow global-spell-fu to be ignored per mode or using a function, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 103d3a19ce 49/86: Fix checking words that spanned different faces, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1c0424b4c9 55/86: Cleanup: minor tweak to docstring, ELPA Syncer, 2022/07/07