unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Flyspell, dictionary and dash
@ 2010-12-04 22:54 Lorenzo Isella
  0 siblings, 0 replies; only message in thread
From: Lorenzo Isella @ 2010-12-04 22:54 UTC (permalink / raw)
  To: help-gnu-emacs

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)






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-04 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04 22:54 Flyspell, dictionary and dash Lorenzo Isella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).