![]() Here is my working Emacs 24.4 / OS X 10.9 Hunspell related setup, hope it helps. That's all I needed to get Hunspell up and working on my system. Just create symlinks to the dictionaries of your preferred language: $ cd ~/Library/Spelling This dictionary needs to be named default, literally. There may be better sources of dictionaries.īesides language-specific dictioniaries, you also need to have a “default” dictionary for Emacs. The best way probably is to download the corresponding LibreOffice extensions and extract the *.dic and *.aff files from the OXT files, which are essentially just ZIP files. Obtaining dictionaries is a little more difficult, though. Normally, you just need to put the corresponding *.aff and *.dic files into ~/Library/Spelling. You need to explicitly install these dictionaries for Hunspell, though, depending on how you installed Hunspell. Essentially, you just need the following to tell Emacs to use hunspell: (setq ispell-program-name (executable-find "hunspell")) Notably, Emacs can now discover available Hunspell dictionaries, and fills ispell-dictionary-alist automatically. Prebuild binaries for pretests and nightly builds of Emacs trunk are available from Emacs for Mac OS X, in the “Pretests” and “Nightlies” sections respectively.Įmacs 24.4 considerably improves support for Hunspell, and is now able to use Hunspell automatically with only little further customization. Configuring Emacs on Mac OS X Tuesday, I wanted a nice experience using Emacs for Mac OS X. ![]() Upgrade to Emacs 24.4, either by installing a recent pretest or by building Emacs trunk. Verified on macOS 11.13.6: brew upgrade emacs will fail if there is no brew-installed emacs available, brew install emacs will install the most recent version (emacs-26.11 right now). Is hunspell not finding the dictionary? Is there a special place I should put the dictionary? or how do I tell emacs/hunspell where to look for the dictionary? ![]() ![]() (there's a directory ~/Applications/en_US in which the dictionary files reside)īut ispell-buffer returns something like Can't open affix or dictionary flies for dictionary named International Ispell Version 3.2.06 (but really Hunspell International Ispell Version 3.2.06 (but really Hunspell 1.3.2) bash_profile export DICTIONARY=en_USĮxport DICPATH=/Users/myname/Applications/en_USĮxport DICPATH=/Users/gpajer/Applications/ (setq ispell-program-name "/usr/local/bin/hunspell")Īnd this in my. emacs so that emacs can (and does) find the executable, like so: Spell checking using hunspell I can't get aspell to build, so I'm trying hunspell. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |