all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Getting Hunspell working properly in Linux
@ 2011-09-03 17:10 Jeffrey Spencer
  2011-09-03 20:01 ` Rasmus
  0 siblings, 1 reply; 6+ messages in thread
From: Jeffrey Spencer @ 2011-09-03 17:10 UTC (permalink / raw
  To: help-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-11  6:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 17:10 Getting Hunspell working properly in Linux Jeffrey Spencer
2011-09-03 20:01 ` 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

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.