From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kevmitch@gmail.com Newsgroups: gmane.emacs.help Subject: Re: turn on flyspell mode permanently in .emacs Date: 22 Aug 2006 15:46:44 -0700 Organization: http://groups.google.com Message-ID: <1156286804.596290.245250@74g2000cwt.googlegroups.com> 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" X-Trace: sea.gmane.org 1156290026 13768 80.91.229.2 (22 Aug 2006 23:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 23:40:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 23 01:40:25 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 1GFfqz-0003vU-Dd for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 01:40:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFfqy-0007Hw-PG for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Aug 2006 19:40:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!74g2000cwt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: 142.103.140.62 Original-X-Trace: posting.google.com 1156286810 15144 127.0.0.1 (22 Aug 2006 22:46:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 22 Aug 2006 22:46:50 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 74g2000cwt.googlegroups.com; posting-host=142.103.140.62; posting-account=HnS6Mw0AAAC46tcl_nES-aWQ34cKcpHN Original-Xref: shelby.stanford.edu gnu.emacs.help:141230 Original-To: help-gnu-emacs@gnu.org 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:36854 Archived-At: > In what buffer? The *scratch* buffer should have flyspell mode turned > on after your ~/.emacs file is loaded. It appears that even with (flyspell-mode 1) in the top level of the .emacs file flyspell mode is not on in any buffer; not even the scratch buffer. > 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.) yeah, I just use M-x flyspell-mode to turn it on which suggests that it really isn't on prior to this. > I'm surprised it doesn't say "Flyspell mode enabled" somewhere after > "Loading flyspell...done". This is a good point. > 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))) Ok, I hadn't tried exactly that. You'll have to bear with me. This lisp stuff is rather obtuse to the beginner. Unfortunately, this doesn't have the desired behavior either. It does however turn on flyspell in the scratch buffer if I enter the command "M-x text-mode". I can also get it to turn on automatically if I open a .m file (which puts emacs in matlab-mode) if I have the following lines in my .emacs file: (add-hook 'matlab-mode-hook (lambda () (flyspell-mode 1))) So that's something. To keep things simple, I have otherwise been opening the .emacs file, which puts me in a buffer titled .emacs, but the exact name of the mode seems to be trickier. I get a pulldown menu titled Emacs-Lisp, which might suggest that I'm in Emacs-Lisp-mode. However M-x Emacs-Lisp-mode returns no match. I guess this is really beside the issue, because I don't want to have to worry about what mode I'm in. I just want flyspell to be on all the time. Is it just wishful thinking that there might be an any-mode-hook? Thanks for taking the time to think about this. Kevin