From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: turn on flyspell mode permanently in .emacs Date: Tue, 22 Aug 2006 15:11:35 -0600 Organization: IHS Message-ID: References: <1156206235.108245.155630@i3g2000cwc.googlegroups.com> <1156277573.754995.300830@75g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156281219 20811 80.91.229.2 (22 Aug 2006 21:13:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 21:13:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 22 23:13:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFdYw-0005Ub-7v for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Aug 2006 23:13:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFdYv-0003iz-KM for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Aug 2006 17:13:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFdYc-0003ec-GS for help-gnu-emacs@gnu.org; Tue, 22 Aug 2006 17:13:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFdYc-0003eD-0d for help-gnu-emacs@gnu.org; Tue, 22 Aug 2006 17:13:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFdYb-0003e7-Fi for help-gnu-emacs@gnu.org; Tue, 22 Aug 2006 17:13:09 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GFdgH-0000Z6-V0 for help-gnu-emacs@gnu.org; Tue, 22 Aug 2006 17:21:06 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GFdYI-0005Mp-IE for help-gnu-emacs@gnu.org; Tue, 22 Aug 2006 23:12:50 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Aug 2006 23:12:50 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Aug 2006 23:12:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 107 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) In-Reply-To: <1156277573.754995.300830@75g2000cwc.googlegroups.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36851 Archived-At: kevmitch@gmail.com wrote: > Thanks for the advice. It would seem however that neither suggestion > worked. I took a look in my Messages buffer and found that it looks > like flyspell is in fact starting using the .emacs file above, but that > it just isn't taking effect for some reason. As I explained, you have turned it on in the *scratch* buffer only. > This remains to be the > case if I try the lambda function suggested by Kevin. I'm not too surprised that didn't work -- it's quite a heavy-handed hack. > However, using > the text-mode-hook without (flyspell-mode 1) doesn't turn it on at > all. Uh, of course not. What buffer is current when you check whether flyspell mode is on or not? What is that buffer's major mode? > Here is my message buffer with the same .emacs file. It looks like > flyspell loads fine at the end, but unfortunately seems to have no > effect. In what buffer? The *scratch* buffer should have flyspell mode turned on after your ~/.emacs file is loaded. > Oddly enough, when I manually turn on flyspell-mode after > starting emacs with the (flyspell-mode 1) in my .emacs file, nothing > further is added to the message buffer (whereas it would be if I hadn't > already started flyspell-mode in the .emacs file). How do you manually turn on flyspell-mode? (M-x flyspell-mode in a buffer where it's already turned on will actually toggle it i.e. turn it off. You need to specify a prefix arg: C-u M-x flyspell-mode.) > In spite of this > message silence, flyspell-mode does seem to magically start working. > > Loading 50a2ps (source)... > Loading a2ps-print...done > Loading 50a2ps (source)...done > Loading 50auctex (source)... > Loading auctex.el (source)... > Loading /usr/share/emacs/21.4/site-lisp/tex-site.el (source)...done > Loading auctex.el (source)...done > Loading preview-latex.el (source)...done > Loading 50auctex (source)...done > Loading 50autoconf (source)...done > Loading 50devhelp (source)...done > Loading 50dictionaries-common (source)... > Loading debian-ispell... > Loading /var/cache/dictionaries-common/emacsen-ispell-default.el > (source)...done > Loading debian-ispell...done > Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el > (source)...done > Loading 50dictionaries-common (source)...done > Loading 50emacs-goodies-el (source)...done > Loading 50emacs-intl-fonts (source)...done > Loading 50ess (source)... > Loading regexp-opt...done > Loading mule-util...done > Loading ange-ftp...done > Loading 50ess (source)...done > Loading 50festival (source)...done > Loading 50ftnchek (source)...done > Loading 50gettext (source)...done > Loading 50gnuplot-mode (source)...done > Loading 50gri-el (source)...done > Loading 50gri-html-doc (source)...done > Loading 50maxima-emacs (source)...done > Loading 50nowebm (source)...done > Loading 50octave (source)...done > Loading 50octave2.1-emacsen (source)...done > Loading 50post-el (source)...done > Loading 50preview-latex (source)...done > Loading 50psgml-init (source)...done > Loading 50pymacs (source)...done > Loading 50pymacs-elisp (source)...done > Loading 50python-mode (source)...done > Loading 51preview-latex (source)...done > Loading paren...done > Loading jka-compr...done > Loading flyspell... > Loading advice...done > Loading flyspell...done > (Next local Ispell command will use british dictionary) [2 times] > Starting new Ispell process... > ispell.el is already loaded > For information about the GNU Project and its goals, type C-h C-p. I'm surprised it doesn't say "Flyspell mode enabled" somewhere after "Loading flyspell...done". Your best bet is to get rid of (flyspell-mode 1) at the top level of your ~/.emacs file, because we know it won't do what you asked for, and to follow Sebastien's advice: (add-hook 'text-mode-hook (lambda () (flyspell-mode 1))) -- Kevin