Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #206859
| From | Johann Spies <johann.spies@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Emacs and hunspell |
| Date | 2019-04-01 10:50 +0200 |
| Message-ID | <xI0NH-8ed-11@gated-at.bofh.it> (permalink) |
| References | <xGyJP-3nv-1@gated-at.bofh.it> <xGLe1-2uw-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, 28 Mar 2019 at 23:50, Alfredo Finelli <alf@computationes.de> wrote:
>
> This is how I managed to make it work for me; what follows is in my
> init.el file:
>
> Thanks Alfredo.
>
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916227
>
This bug seems to bite me. Emacs does not seem to get the dictionaries.
If I have aspell as an installed package it seems to use it despite my
configuration :
;;-- Spelling --
(with-eval-after-load "ispell"
(setq ispell-program-name (executable-find "hunspell")
ispell-skip-html t
ispell-local-dictionary-alist
'(
("en_ZA" "[[:alpha:]]" "[^[:alpha:]]" "[']"
nil ("-d" "en_ZA") nil utf-8)
("af_ZA" "[[:alpha:]]" "[^[:alpha:]]" "[']"
nil ("-d" "af_ZA") nil utf-8)
("nl_NL" "[[:alpha:]]" "[^[:alpha:]]" "[']"
nil ("-d" "nl_NL") nil utf-8)
("de_DE" "[[:alpha:]]" "[^[:alpha:]]" "[-]"
nil ("-d" "de_DE") nil utf-8),
("af_ZA,en_ZA" "[[:alpha:]]" "[^[:alpha:]]" "[']"
nil ("-d" "af_ZA,en_ZA") nil utf-8)
)
ispell-dictionary "af_ZA,en_ZA"))
Emacs complains about the last line:
Debugger entered--Lisp error: (error "No data for dictionary
\"en_ZA,af_ZA\" in ‘ispell-local-dictionary-alist’ or
‘ispell-dictionary-alist’")
signal(error ("No data for dictionary \"en_ZA,af_ZA\" in
‘ispell-local-dictionary-alist’ or ‘ispell-dictionary-alist’"))
error("No data for dictionary \"%s\" in `ispell-local-dictionary-alist'
or `ispell-dictionary-alist'" "en_ZA,af_ZA")
But from the commandline I can use it:
$ hunspell -d "af_ZA,en_ZA" .emacs
Anyhow there is progress. I can at least use one dictionary at a time.
Thanks again.
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm 63:3)
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Emacs and hunspell Johann Spies <johann.spies@gmail.com> - 2019-03-28 09:40 +0100
Re: Emacs and hunspell Alfredo Finelli <alf@computationes.de> - 2019-03-28 23:00 +0100
Re: Emacs and hunspell Johann Spies <johann.spies@gmail.com> - 2019-04-01 10:50 +0200
Re: Emacs and hunspell Curt <curty@free.fr> - 2019-04-01 11:30 +0200
Re: Emacs and hunspell Teemu Likonen <tlikonen@iki.fi> - 2019-04-01 15:40 +0200
csiph-web