From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: help-gnu-emacs@gnu.org
Subject: Re: Setting flyspell-mode when entering a file
Date: Thu, 20 Aug 2009 22:05:47 -0400 [thread overview]
Message-ID: <87ab1tj4zo.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: uzl9uyzlp.fsf@raytheon.com
>>>>> "Sarir" == Sarir Khamsi <sarir.khamsi@raytheon.com> writes:
Sarir> I would like to automatically enter flyspell-mode when I open
Sarir> a file and have placed
Sarir> -*- flyspell-mode: t -*-
Sarir> at the top of the file I'm opening. The mode-line says "Fly"
Sarir> in it but flyspell doesn't seem to be working. If I then run
Sarir> the flyspell-mode command interactively (twice since it seems
Sarir> to already be enabled), it works fine. Any ideas what I'm
Sarir> doing wrong? Thanks.
You can set flyspell mode for specific modes. This is what I have:
(add-hook 'message-mode-hook 'turn-on-flyspell)
(add-hook 'text-mode-hook 'turn-on-flyspell)
(add-hook 'c-mode-common-hook 'flyspell-prog-mode)
(add-hook 'emacs-lisp-mode-hook '(lambda ()
(setq flyspell-use-meta-tab nil)
(flyspell-prog-mode)))
(defun turn-on-flyspell ()
(interactive)
(flyspell-mode 1))
OTH,
Maurizio
--
next prev parent reply other threads:[~2009-08-21 2:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 20:55 Setting flyspell-mode when entering a file Sarir Khamsi
2009-08-21 2:05 ` Maurizio Vitale [this message]
2009-08-21 9:04 ` Eli Zaretskii
2009-08-21 9:56 ` Teemu Likonen
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=87ab1tj4zo.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
--to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
--cc=help-gnu-emacs@gnu.org \
--cc=maurizio.vitale@polymath-solutions.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).