emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Value of `ispell-dictionary-alist' reset by `org-agenda-li


From: Noorul Islam K M
Subject: [Orgmode] Re: Value of `ispell-dictionary-alist' reset by `org-agenda-list'
Date: Tue, 07 Sep 2010 11:00:09 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Sébastien Vauban <address@hidden> writes:

> Hi Noorul and everybody,
>
> Noorul Islam wrote:
>> 2010/9/3 Sébastien Vauban <address@hidden>:
>>> I still don't understand what's going on, but I've managed getting closer 
>>> to a
>>> long experienced problem in my Emacs: while I set the value of
>>> =ispell-dictionary-alist= in the beginning of my =.emacs= file, it is reset
>>> when calling =org-agenda-list=.
>
> (message "Value of `ispell-dictionary-alist' before `org-agenda-list'")
> (edebug-print ispell-dictionary-alist)
>
> (org-agenda-list)
>
> (message "Value of `ispell-dictionary-alist' after `org-agenda-list'")
> (edebug-print ispell-dictionary-alist)
>
> (delete-other-windows)
>
>
>>> Has anyone any idea on how to circumvent this?
>>
>> Since orgmode is using flyspell, looks like it is interfering with ispell.
>>
>> From flyspell.el
>> ======================================================
>> (defun flyspell-mode-on ()
>>   "Turn Flyspell mode on.  Do not use this; use `flyspell-mode' instead."
>>   (ispell-set-spellchecker-params) ; Initialize variables and dicts alists
>>   (setq ispell-highlight-face 'flyspell-incorrect)
>>   ;; local dictionaries setup
>>   (or ispell-local-dictionary ispell-dictionary
>>       (if flyspell-default-dictionary
>>           (ispell-change-dictionary flyspell-default-dictionary)))
>> ======================================================
>
> Yes, but I don't understand why Org *would* (and did not write *does*, as it
> still is not clear enough to me) setq the list of dictionaries...
>
> Clearly a behavior to forbid!

You might be able to write a flyspell-mode hook function which will set
the dictionary you like in the variable flyspell-default-dictionary.

Thanks and Regards
Noorul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]