From: Marius Hofert <marius.hofert@math.ethz.ch>
To: <mario.lassnig@cern.ch>
Cc: Emacs help <help-gnu-emacs@gnu.org>
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 [thread overview]
Message-ID: <48B7FF53-93E0-4FAC-81B9-C5D1FB222F0A@math.ethz.ch> (raw)
In-Reply-To: <4EA5AB70.5030902@cern.ch>
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,
>
> On 11-10-24 18:03 , Marius Hofert wrote:
>> Dear Mario,
>>
>> 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
>
> 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/)
>
>> 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...
>
> 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.
>
>>
>> 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?
>
> i didn't even know that there's a flyspell-prog mode :-)
> i use it for latex only
>
> cheers,
> mario
>
>>
>> Cheers,
>>
>> Marius
>
> --
> Mario Lassnig
> CERN PH-ADP-DDM 1-R-022
> CH-1211 Geneve 23
> mario.lassnig@cern.ch
> +41 22 76 71268
>
next prev parent reply other threads:[~2011-10-24 20:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.955.1319470038.15868.help-gnu-emacs@gnu.org>
[not found] ` <4EA585F2.7020806@lassnig.net>
2011-10-24 16:03 ` ispell/aspell on Mac 10.7: "Searching for program: No such file or directory, aspell" Marius Hofert
[not found] ` <4EA5AB70.5030902@cern.ch>
2011-10-24 20:30 ` Marius Hofert [this message]
2011-10-24 15:27 Marius Hofert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B7FF53-93E0-4FAC-81B9-C5D1FB222F0A@math.ethz.ch \
--to=marius.hofert@math.ethz.ch \
--cc=help-gnu-emacs@gnu.org \
--cc=mario.lassnig@cern.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).