From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: ispell/aspell on Mac 10.7: "Searching for program: No such file or directory, aspell" Date: Mon, 24 Oct 2011 22:30:07 +0200 Message-ID: <48B7FF53-93E0-4FAC-81B9-C5D1FB222F0A@math.ethz.ch> References: <4EA585F2.7020806@lassnig.net> <21CF8EEC-7469-4A94-8347-B6D70A390FBE@math.ethz.ch> <4EA5AB70.5030902@cern.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319488233 325 80.91.229.12 (24 Oct 2011 20:30:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2011 20:30:33 +0000 (UTC) Cc: Emacs help To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 24 22:30:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIRA6-0007nW-AE for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 22:30:22 +0200 Original-Received: from localhost ([::1]:34533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIRA5-0007cU-JP for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 16:30:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIR9z-0007cC-FZ for help-gnu-emacs@gnu.org; Mon, 24 Oct 2011 16:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIR9w-00045D-03 for help-gnu-emacs@gnu.org; Mon, 24 Oct 2011 16:30:15 -0400 Original-Received: from edge10.ethz.ch ([82.130.75.186]:8257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIR9v-000439-DV for help-gnu-emacs@gnu.org; Mon, 24 Oct 2011 16:30:11 -0400 Original-Received: from CAS20.d.ethz.ch (172.31.51.110) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.339.1; Mon, 24 Oct 2011 22:30:06 +0200 Original-Received: from 80-218-247-21.dclient.hispeed.ch (80.218.247.21) by CAS20.d.ethz.ch (172.31.51.110) with Microsoft SMTP Server (TLS) id 14.1.339.1; Mon, 24 Oct 2011 22:30:08 +0200 In-Reply-To: <4EA5AB70.5030902@cern.ch> X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [80.218.247.21] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.75.186 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:82636 Archived-At: Okay, just figured out, that aspell did not work in the emacs shell = (only in terminal.app). A restart cleared everything, so aspell is now = found and I don't even need the two setq-default commands :-) Cheers, Marius On 2011-10-24, at 20:16 , Mario Lassnig wrote: > Hi, >=20 > On 11-10-24 18:03 , Marius Hofert wrote: >> Dear Mario, >>=20 >> thanks a lot for your help. >> I also thought that steps 5) to 7) are not necessary, but without = manually setting up flyspell.el, I obtained: >> Starting new Ispell process [default] ... >> Enabling Flyspell mode gave an error >=20 > hmmm, i don't even have any load/require/anything in my init.el... > it just works for me... (this guy here: http://emacsformacosx.com/) >=20 >> Okay, I removed the flyspell folder (containing flyspell.el) and put = in the following in .emacs (as you suggested): >> (setq-default ispell-program-name "/usr/local/bin/aspell") >> (setq-default ispell-list-command "list") >> Without the first command, I get the message "Enabling Flyspell mode = gave an error", so even if aspell belongs to PATH it is not found. = Hmm... >=20 > the osx environment is a bit messed up. it's a huge pita to do this = correctly. the easiest way is just to put the full path to aspell in the = ispell-program-name. >=20 >>=20 >> I also put in the following in .emacs: >> (add-hook 'text-mode-hook 'flyspell-mode); enable flyspell mode for = text-mode >> (mapcar (lambda (mode-hook) (add-hook mode-hook 'flyspell-prog-mode)) >> '(c-mode-common-hook R-mode-hook emacs-lisp-mode-hook)) >> The second/third lines are to use flyspell-prog-mode for .c and .R = files (and emacs-lisp). However, this does not seem to have an impact = when I opened a .c file and put in wrong character sequences in the = comments... How does this work? >=20 > i didn't even know that there's a flyspell-prog mode :-) > i use it for latex only >=20 > cheers, > mario >=20 >>=20 >> Cheers, >>=20 >> Marius >=20 > --=20 > Mario Lassnig > CERN PH-ADP-DDM 1-R-022 > CH-1211 Geneve 23 > mario.lassnig@cern.ch > +41 22 76 71268 >=20