[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ispell not working in TeX mode
From: |
Peter Dyballa |
Subject: |
Re: Ispell not working in TeX mode |
Date: |
Fri, 15 Feb 2008 22:58:19 +0100 |
Am 15.02.2008 um 22:10 schrieb Rasmus Pank Roulund:
As I stated in the original post, it is only a problem when the
file is located on the D partition rather than the C drive.
Of course I am not use Losedos user, but how about adopting this code
to your init file?
(if (string= "aspell" ispell-program-name)
(progn
; (setq ispell-extra-args "--norm-form=comp --norm-required --
run-together")
; (setq ispell-dictionary "en_GB-ise-w_accents")
(setq ispell-dictionary "deutsch")
(set-default 'ispell-local-dictionary ispell-dictionary)
(add-hook 'TeX-language-en-hook (function (lambda ()
(ispell-change-dictionary "british"))))
(add-hook 'TeX-language-de-hook (function (lambda ()
(ispell-change-dictionary ispell-dictionary))));"deutsch"
(add-hook 'LaTeX-mode-hook (function (lambda () (setq
ispell-extra-args '("--mode=tex")))))
; (setq-default ispell-extra-args '("--mode=tex"))
; (setq-default ispell-extra-args '("--
personal=custom_dict.rws"))
; (add-hook 'LaTeX-mode-hook 'flyspell-mode)
(message "Alles für «a»spell")
)
(setq ispell-dictionary "german8")
(add-hook 'TeX-language-en-hook (function (lambda ()
(ispell-change-dictionary "british"))))
(add-hook 'TeX-language-de-hook (function (lambda ()
(ispell-change-dictionary "deutsch8"))))
(add-hook 'LaTeX-mode-hook (function (lambda () (setq
ispell-extra-args '("-t")))))
(message "Alles für »i«spell")
)
You probably know how to find the dictionaries *spell can use.
Setting the programme and the dictionary once might allow both to
survive the change of the slice/volume/partition/drive. If not, there
are some variables you can set to determine exactly and unalterable
where aspell will find its dictionaries and other paraphernalia,
maybe best as "C:/...":
ispell-aspell-data-dir
ispell-aspell-dict-dir
¿ispell-really-aspell?
Maybe you also need to create a hook that changes
ispell-process-directory
if not changed correctly.
--
Greetings
Pete
If you're not confused, you're not paying attention.