{"id":139,"date":"2010-05-26T13:47:00","date_gmt":"2010-05-26T13:47:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=139"},"modified":"2010-05-26T13:47:00","modified_gmt":"2010-05-26T13:47:00","slug":"switching-flyspell-dictionaries-on-the-fly","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=139","title":{"rendered":"Switching flyspell dictionaries on the fly"},"content":{"rendered":"<p>Since I am using <a href=\"http:\/\/www.gnu.org\/software\/emacs\/\">Emacs<\/a> for most of my text processing, and it comes with the nice <a href=\"http:\/\/www-sop.inria.fr\/members\/Manuel.Serrano\/flyspell\/flyspell.html\">Flyspell<\/a> mode, and I do write English and German the most, I found this nice snippet from the <a href=\"http:\/\/www.emacswiki.org\/emacs\/FlySpell\">Emacs wiki<\/a>:<\/p>\n<div><\/div>\n<p><\/p>\n<pre><br \/>(defun fd-switch-dictionary()<br \/>    (interactive)<br \/>    (let* ((dic ispell-current-dictionary)<br \/>    (change (if (string= dic \"deutsch8\") \"english\" \"deutsch8\")))<br \/>      (ispell-change-dictionary change)<br \/>      (message \"Dictionary switched from %s to %s\" dic change)<br \/>      ))<br \/><br \/>(global-set-key (kbd \"&lt;f8&gt;\")   'fd-switch-dictionary)<br \/><\/pre>\n<p>On OS X, I recommend to use emacs-app or emacs-app-devel from MacPorts. For flyspell to work correctly, also make sure to install aspell and e.g. aspell-dict-de. Otherwise the above function will complain, most probably.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I am using Emacs for most of my text processing, and it comes with the nice Flyspell mode, and I do write English and German the most, I found this nice snippet from the Emacs wiki: (defun fd-switch-dictionary() (interactive) (let* ((dic ispell-current-dictionary) (change (if (string= dic &#8220;deutsch8&#8221;) &#8220;english&#8221; &#8220;deutsch8&#8221;))) (ispell-change-dictionary change) (message &#8220;Dictionary switched &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=139\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Switching flyspell dictionaries on the fly&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,24],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/139"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=139"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}