From: Les Harris <me@lesharris.nospamplease.com.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: help with flyspell-mode
Date: Sat, 21 Nov 2009 18:34:12 -0800 [thread overview]
Message-ID: <hea7v7$j9c$1@lh.eternal-september.org> (raw)
In-Reply-To: mailman.11262.1258856141.2239.help-gnu-emacs@gnu.org
Daniel Dalton <d.dalton@iinet.net.au> writes:
> Anyone know how to enable flyspell mode for files with no extension?
Using a file local variable for the files with no extension would be one
option. ie, adding:
-*- mode: flyspell; -*-
to the top of your file would turn flyspell mode on. This is only
useful for files you visit often though.
Alternatively, you can add an element to magic-mode-alist which makes
emacs match a given regular expression or match function against the
file being opened and setting the given mode. This method is only
useful if you can predict in someway what might be in the extension-less
files.
Unfortunately, Fundamental mode doesn't run any hooks so that method
won't work.
So a couple of suboptimal ideas is all I can come up with. Would love
to hear of a more robust approach perhaps using 'file' and setting the
mode based off that some how.
--
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?
next parent reply other threads:[~2009-11-22 2:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11262.1258856141.2239.help-gnu-emacs@gnu.org>
2009-11-22 2:34 ` Les Harris [this message]
2009-11-22 11:05 ` help with flyspell-mode Daniel Dalton
2009-11-22 14:38 ` Colin S. Miller
2009-11-26 7:54 ` Kevin Rodgers
2009-11-26 11:27 ` Lennart Borgman
2009-11-28 3:09 ` Stefan Monnier
2009-11-22 16:14 ` harven
2009-11-22 2:15 Daniel Dalton
2009-11-22 5:06 ` Bernardo
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='hea7v7$j9c$1@lh.eternal-september.org' \
--to=me@lesharris.nospamplease.com.invalid \
--cc=help-gnu-emacs@gnu.org \
/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).