From: Jeffrey Spencer <jeffspencerd@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Getting Hunspell working properly in Linux
Date: Sun, 04 Sep 2011 03:10:02 +1000 [thread overview]
Message-ID: <4E625F6A.3000307@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1804 bytes --]
I have been trying to get hunspell working for nearly two days and can't
seem to figure it out. I have followed and tried everything I could
find. Everything on http://www.emacswiki.org/emacs/InteractiveSpell and
elsewhere. I think it is an issue with not recognizing the dictionaries
properly. They might be in the wrong encoding format or it isn't
checking in the right folder. Any help on this would be appreciated or
directions to take. I've tried the below and many variations of them and
can't seem to get anything to work. I think it has to do with the
dictionary list possibly.
|;; Use hunspell instead of ispell
(setq ispell-program-name "hunspell")
(require 'rw-language-and-country-codes)
(require 'rw-ispell)
(require 'rw-hunspell)
(setq ispell-dictionary "en_US")
;; The following is set via custom
(custom-set-variables
'(rw-hunspell-dicpath-list (quote ("/usr/share/hunspell")))
'(rw-hunspell-make-dictionary-menu t)
'(rw-hunspell-use-rw-ispell t)
)
|
or
|(eval-after-load "ispell"
(progn
(setq ispell-dictionary "en_US"
ispell-extra-args '("-a" "-i" "utf-8")
ispell-silently-savep t
ispell-dictionary-alist
'((nil ; default
"[A-Za-z]" "[^A-Za-z]" "[']" t ("-d" "en_US" "-i"
"utf-8") nil utf-8)
("american" ; Yankee English
"[A-Za-z]" "[^A-Za-z]" "[']" t ("-d" "en_US" "-i"
"utf-8") nil utf-8)
("british" ; British English
"[A-Za-z]" "[^A-Za-z]" "[']" t ("-d" "en_GB" "-i"
"utf-8") nil utf-8)
)))
(setq-default ispell-program-name "hunspell")
|
so now I just have:
|(setq ispell-program-name "hunspell")
(setq ispell-silently-savep t)|
cheers,
Jeff
--
________________________
Jeffrey Spencer
jeffspencerd@gmail.com
[-- Attachment #2: Type: text/html, Size: 9355 bytes --]
next reply other threads:[~2011-09-03 17:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-03 17:10 Jeffrey Spencer [this message]
2011-09-03 20:01 ` Getting Hunspell working properly in Linux Rasmus
2011-09-04 3:39 ` Jeffrey Spencer
2011-09-10 14:47 ` Teemu Likonen
2011-09-10 23:36 ` Rasmus
2011-09-11 6:49 ` wcheck-mode (was: Getting Hunspell working properly in Linux) Teemu Likonen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E625F6A.3000307@gmail.com \
--to=jeffspencerd@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.