mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
(flyspell-mode-on): Call ispell-change-dictionary only if necessary.
This commit is contained in:
parent
e342a48a65
commit
8ceb0c6ea9
1 changed files with 3 additions and 2 deletions
|
|
@ -543,8 +543,9 @@ in your .emacs file.
|
|||
"Turn Flyspell mode on. Do not use this; use `flyspell-mode' instead."
|
||||
(setq ispell-highlight-face 'flyspell-incorrect-face)
|
||||
;; local dictionaries setup
|
||||
(ispell-change-dictionary
|
||||
(or ispell-local-dictionary ispell-dictionary flyspell-default-dictionary))
|
||||
(or ispell-local-dictionary ispell-dictionary
|
||||
(if flyspell-default-dictionary
|
||||
(ispell-change-dictionary flyspell-default-dictionary)))
|
||||
;; we have to force ispell to accept the local definition or
|
||||
;; otherwise it could be too late, the local dictionary may
|
||||
;; be forgotten!
|
||||
|
|
|
|||
Loading…
Reference in a new issue