unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: kevmitch@gmail.com
Subject: Re: turn on flyspell mode permanently in .emacs
Date: 22 Aug 2006 15:46:44 -0700	[thread overview]
Message-ID: <1156286804.596290.245250@74g2000cwt.googlegroups.com> (raw)
In-Reply-To: <mailman.5465.1156281191.9609.help-gnu-emacs@gnu.org>

> 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

  parent reply	other threads:[~2006-08-22 22:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  0:23 turn on flyspell mode permanently in .emacs kevmitch
2006-08-22 15:07 ` Kevin Rodgers
2006-08-22 15:24 ` Sebastian P. Luque
     [not found] ` <mailman.5446.1156260343.9609.help-gnu-emacs@gnu.org>
2006-08-22 20:12   ` kevmitch
2006-08-22 21:11     ` Kevin Rodgers
2006-08-22 22:13       ` Noah Slater
2006-08-23 14:24         ` Kevin Rodgers
     [not found]         ` <mailman.5502.1156343431.9609.help-gnu-emacs@gnu.org>
2006-08-23 16:34           ` kevmitch
     [not found]     ` <mailman.5465.1156281191.9609.help-gnu-emacs@gnu.org>
2006-08-22 22:46       ` kevmitch [this message]
2006-08-23  2:32         ` Sebastian P. Luque
2006-08-23 14:36         ` Kevin Rodgers
2006-08-23 14:53           ` Noah Slater
2006-08-23 21:27             ` Kevin Rodgers
2006-08-23 12:48 ` Johan Bockgård

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=1156286804.596290.245250@74g2000cwt.googlegroups.com \
    --to=kevmitch@gmail.com \
    /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).