help-gnu-emacs
[Top][All Lists]
Advanced

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

Flyspell, dictionary and dash


From: Lorenzo Isella
Subject: Flyspell, dictionary and dash
Date: Sat, 04 Dec 2010 23:54:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11pre) Gecko/20100623 Spicebird/0.8

Dear All,
I have the lines pasted at the end of the email in my .emacs file.
They deal with the dictionaries I can use when editing a tex file and they tell, among the other things, flyspell to consider two words linked by a dash as two actually separated words (otherwise it would mark them in red as mistakes). Now, my problem is that whenever I change the dictionary to work on a tex file in a different language (M-x ispell-change-dictionary), then flyspell again marks in read all the words separated by a dash.
Does anyone have any idea about how to fix this?
In case it matters, I am running debian squeeze on my box and everything comes from standard repositories.
Cheers

Lorenzo






;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-hook 'LaTeX-mode-hook 'flyspell-mode) ;turn on flyspell mode by
                                           ;default


;; Use aspell for dictionaries
 (setq ispell-program-name "aspell")
   (setq ispell-really-aspell t)
   (setq ispell-extra-args '("--sug-mode=fast"))


;; `aspell' extensions should *not* be used
    (setq ispell-really-aspell nil)




 ;; dash character (`-') is considered as a word delimiter
    (setq flyspell-consider-dash-as-word-delimiter-flag t)



   (autoload 'flyspell-babel-setup "flyspell-babel")
   (add-hook 'latex-mode-hook 'flyspell-babel-setup)
;;

(require 'ispell-multi)






reply via email to

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