简体   繁体   中英

in Emacs, how to instruct Flyspell to permit certain repeated words?

In Emacs, I use Flyspell to check my spelling. By default, Flyspell highlights repeated words.

But certain words are intentionally repeated, eg "ha ha." How can I instruct Flyspell to permit certain words to be repeated?

flyspell-mark-duplications-exceptions is a variable defined in `flyspell.el'.
Its value is ((nil "that" "had") ("\\`francais" "nous" "vous"))

Documentation:
A list of exceptions for duplicated words.
It should be a list of (LANGUAGE . EXCEPTION-LIST).

LANGUAGE is nil, which means the exceptions apply regardless of
the current dictionary, or a regular expression matching the
dictionary name (`ispell-local-dictionary' or
`ispell-dictionary') for which the exceptions should apply.

EXCEPTION-LIST is a list of strings.  The checked word is
downcased before comparing with these exceptions.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 24.1 of Emacs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM