From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Expected language "en" but got "sv" Date: Sun, 10 Nov 2013 23:04:19 +0100 Message-ID: References: <871u2ox7nx.fsf@example.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384121083 10823 80.91.229.3 (10 Nov 2013 22:04:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2013 22:04:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: andreas.tjarnberg@fripost.org (=?iso-8859-1?Q?Andreas_Tj=E4rnberg?=) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 10 23:04:47 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vfd7e-0000d9-Q2 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Nov 2013 23:04:46 +0100 Original-Received: from localhost ([::1]:33858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfd7e-0003cC-9K for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Nov 2013 17:04:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfd7N-0003YO-39 for help-gnu-emacs@gnu.org; Sun, 10 Nov 2013 17:04:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vfd7F-0001Nc-Ob for help-gnu-emacs@gnu.org; Sun, 10 Nov 2013 17:04:29 -0500 Original-Received: from mout.web.de ([212.227.17.12]:64406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfd7F-0001NY-Co for help-gnu-emacs@gnu.org; Sun, 10 Nov 2013 17:04:21 -0500 Original-Received: from sumac.fritz.box ([84.119.50.65]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0LlWGZ-1V8Ut91Dt9-00bLWX for ; Sun, 10 Nov 2013 23:04:20 +0100 In-Reply-To: <871u2ox7nx.fsf@example.org> X-Mailer: Apple Mail (2.1085) X-Provags-ID: V03:K0:5Oha6SnwC+3xP+ZOLRIGyxmNkcBFItqU9b11ct/r9qg7QDccYWk PnGF88VdyR1t876zED6eRgFL44cXm1LLUFqIZC32eG2Iumn4u6PrcFi0ZqjXZs4Il12fZ87 mLU4jW3lI0M/ieoi3hXZXI0jBQHJWxYzww5nLJnJBgOkxCmeSZVBUvaZS+DNlROrgw3wccQ fquZJcF2OBTqMg4xp0ruw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94439 Archived-At: Am 10.11.2013 um 21:49 schrieb Andreas Tj=E4rnberg: > I am wondering how I am suppose to handle my personal dictionary if I > have some swedish and some english words that I want to add to it or > perhaps to different files and use them when appropriate. I have: -rw-rw-r-- 1 pete 1700 14. Dez 2012 .ispell_english -rw-rw-r-- 1 pete 2216 5. Dez 2008 .ispell_german and this can be configured via (setq ispell-personal-dictionary "~/.ispell_german") You just have to switch=85 The statement above is not active in my init = file, it's just left as a comment. What I do have is: (setq ispell-program-name "ispell") ; (setq ispell-program-name "aspell") =09 (if (string=3D "aspell" ispell-program-name) (progn ; (setq ispell-extra-args "--norm-form=3Dcomp = --norm-required --run-together") ; (setq ispell-dictionary "en_GB-ise-w_accents") (setq ispell-dictionary "deutsch") (set-default 'ispell-local-dictionary = ispell-dictionary) (add-hook 'LaTeX-mode-hook (function (lambda () (setq = ispell-extra-args '("--mode=3Dtex"))))) ; (setq-default ispell-extra-args '("--mode=3Dtex")) ; (setq-default ispell-extra-args = '("--personal=3Dcustom_dict.rws")) ; (add-hook 'LaTeX-mode-hook 'flyspell-mode) (message "Alles f=FCr =ABa=BBspell") ) ; (setq ispell-dictionary "german8") (setq ispell-dictionary "deutsch8") (add-hook 'LaTeX-mode-hook (function (lambda () (setq = ispell-extra-args '("-t"))))) (message "Alles f=FCr =BBi=ABspell") (add-hook 'TeX-language-en-hook (function (lambda () = (ispell-change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () = (ispell-change-dictionary ispell-dictionary)))) ) Maybe some lines can be deleted. It seems to work fine when I M-x = ispell-change-dictionary. -- Greetings Pete People say that if you play Microsoft CD's backwards, you hear satanic = things, but that's nothing, because if you play them forwards, they = install MS Windows.