help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with flyspell-mode


From: Les Harris
Subject: Re: help with flyspell-mode
Date: Sat, 21 Nov 2009 18:34:12 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]