{"id":204,"date":"2015-02-05T13:56:10","date_gmt":"2015-02-05T13:56:10","guid":{"rendered":"http:\/\/blogs.neuwirth.priv.at\/software\/?p=204"},"modified":"2015-02-05T13:56:17","modified_gmt":"2015-02-05T13:56:17","slug":"emacs-and-spell-on-a-mac","status":"publish","type":"post","link":"https:\/\/blogs.neuwirth.priv.at\/software\/2015\/02\/05\/emacs-and-spell-on-a-mac\/","title":{"rendered":"Emacs and spell on a Mac"},"content":{"rendered":"<div class=\"tweet_button97\" style=\"float: right; margin-left: 10px;\"><a href=\"http:\/\/twitter.com\/share\" rel=\"nofollow\" class=\"twitter-share-button\" data-url=\"https:\/\/blogs.neuwirth.priv.at\/software\/2015\/02\/05\/emacs-and-spell-on-a-mac\/\" data-text=\"Emacs and spell on a Mac - Software tips, tricks, and hacks\" data-count=\"vertical\" data-lang=\"en\" data-via=\"tweetbutton\"  data-related=\"coderplus:Wordpress Tips and more.\"><\/a><\/div><p>I had some trouble installing aspell in Emacs on my Mac, so here is what I did to make it work.<\/p>\n<p>I installed Emacs 24.4 from the <a href=\"http:\/\/emacsformacosx.com\">Emacs for OS X<\/a> web site, and I installed cocoAspell from <a href=\"http:\/\/people.ict.usc.edu\/~leuski\/cocoaspell\/\">its web site<\/a>.<\/p>\n<p>Additionally I installed the German dictionary from the aspell dictionary web site accessible from the cocoAspell web site.<\/p>\n<p>As described in the docs, I installed the additional dictionary directory into <code>\/Library\/Application Support\/cocoAspell\/<\/code> by unzipping the archives from the cocoAspell site.\u00a0This created a subdirectory for the dictionaries, in my case <code>\/Library\/Application Support\/cocoAspell\/aspell6-de-2030222<\/code> in addition to <code>\/Library\/Application Support\/cocoAspell\/aspell6-en-6.0-0<\/code> which was created by the cocoAspell installation itself.<\/p>\n<p>Then, I created a new directory <code>\/Library\/Application Support\/cocoAspell\/aspell6-combined<\/code> and copied all files from the other two dictionaries directories into these new directories. <\/p>\n<p>Then I edited the file <code>\/usr\/local\/etc\/aspell.conf<\/code>. I replaced the line <\/p>\n<pre lang=\"\" collapse=+>\r\ndict-dir \/usr\/local\/lib\/aspell-0.60\r\n<\/pre>\n<p>by<\/p>\n<pre lang=\"\" collapse=+>\r\ndict-dir \/Library\/Application Support\/cocoAspell\/aspell6-combined\r\n<\/pre>\n<p>All these action need admin privileges, so in most cases one has to use <code>sudo<\/code> to run the commands.<\/p>\n<p>In the final step, I had to start Emacs, and navigate to <code>Tools -> Spell Checking -> Customize<\/code> and set the value for <code>Ispell dictionary<\/code> to <code>default<\/code><\/p>\n<p>After that, I could use the menu items on <code>Edit -> Spell<\/code>, and using <Change dictionary<\/code> there, I also could switch between English and German.<\/p>","protected":false},"excerpt":{"rendered":"<div class=\"tweet_button97\" style=\"float: right; margin-left: 10px;\"><a href=\"http:\/\/twitter.com\/share\" rel=\"nofollow\" class=\"twitter-share-button\" data-url=\"https:\/\/blogs.neuwirth.priv.at\/software\/2015\/02\/05\/emacs-and-spell-on-a-mac\/\" data-text=\"Emacs and spell on a Mac - Software tips, tricks, and hacks\" data-count=\"vertical\" data-lang=\"en\" data-via=\"tweetbutton\"  data-related=\"coderplus:Wordpress Tips and more.\"><\/a><\/div><p>I had some trouble installing aspell in Emacs on my Mac, so here is what I did to make it work. I installed Emacs 24.4 from the Emacs for OS X web site, and I installed cocoAspell from its web site. Additionally I installed the German dictionary from the aspell dictionary web site accessible from [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":12,"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/posts\/204\/revisions\/216"}],"wp:attachment":[{"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.neuwirth.priv.at\/software\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}