Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #206717

Emacs and hunspell

From Johann Spies <johann.spies@gmail.com>
Newsgroups linux.debian.user
Subject Emacs and hunspell
Date 2019-03-28 09:40 +0100
Message-ID <xGyJP-3nv-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I, so far, did not manage to use hunspell with emacs.  After reading a lot
on the internet, inter alia emacs-wiki and stackexchange and trying out
different recipes, still no success.

My latest effort in .emacs:

(with-eval-after-load "ispell"
  (setq ispell-program-name "hunspell")
  (setq ispell-dictionary "af_ZA")
  ;; ispell-set-spellchecker-params has to be called
  ;; before ispell-hunspell-add-multi-dic will work
  (ispell-set-spellchecker-params)
  (ispell-hunspell-add-multi-dic "af_ZA,en_ZA"))

(setq ispell-program-name (executable-find "hunspell")
      ispell-dictionary "af_ZA")
produces the following error message when trying to use the spell process:

ispell-get-decoded-string: No data for dictionary "af_ZA" in
‘ispell-local-dictionary-alist’ or ‘ispell-dictionary-alist’

>From what I have read emacs (1:26.1+1-3.2) should just work with hunspell
even if you just set the last two lines of the above configuration.
However, it does not seem to pick up the dictionaries.

How do I get it to work?

Regards
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 — Next in thread | Find similar | Unroll thread


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