LINUX.ORG.RU

emacs странное поведение с ispell и .emacs


0

0

Доброго времени суток.
В .emacs есть след строки:

(setq
ispell-extra-args (quote ("" "-a"))
ispell-have-new-look t
ispell-local-dictionary "russian"
ispell-local-dictionary-alist (quote (("russian" "[АБВГДЕЖЗИЙКЛМНОПРСТУФХЧШЩЪЬЮЯабвгдежзийклмнопрстуфхцшщюя]" "[^АБВГДЕЖЗИЙКЛМНОПРСТУФХЧШЩЪЬЮЯабвгдежзийклмнопрстуфхцшщюя]" "" nil ("-d" "ru-yo") nil koi8-r)))
ispell-message-dictionary-alist (quote (("" . "")))
ispell-program-name "aspell")

После их ручного исполнения (\C-x \C-e) проверка орфографии работает на ура везде. После загрузки не работает. Есть идеи?

В message пишет

Spell checking *scratch* using aspell with russian dictionary... Spell-checking using aspell with russian dictionary done

в обоих случаях.

ryukzak
() автор топика

Не пользуюсь никакими проверщиками орфографии, поэтому только предположение, что после инициализации переменных твоих они переинициализируются где-то потом (или часть из них). А где, собственно, (require 'ispell) стоит? Вот попробуй загрузить ispell *после* инициализации этих переменных.

Zubok ★★★★★
()

Последний абзац, кажется, об этом. Проверяй.

ispell.el loading at startup
----------------------------

Emacs comes dumped with an ispell-menu-map containing a set of
dictionaries that won't be what's actually present. To make it match the
actually installed dictionaries some magic is needed.

That previously required force loading of ispell.el even if you do not
intend to use it at all. This is *no longer* the case, and good menus
will be shown without actualy loading ispell.el.

If for whichever reason you need to load it from your emacs
initialization file, make sure that is done *after* any local definition
of ispell-local-dictionary, ispell-program-name or
ispell-local-dictionary-alist.

Zubok ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.