From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Les Harris Newsgroups: gmane.emacs.help Subject: Re: help with flyspell-mode Date: Sat, 21 Nov 2009 18:34:12 -0800 Organization: People's Front Against Organizations Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258870517 22331 80.91.229.12 (22 Nov 2009 06:15:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2009 06:15:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 22 07:15:10 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NC5j4-0001Zq-2E for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Nov 2009 07:15:10 +0100 Original-Received: from localhost ([127.0.0.1]:35037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NC5j3-0004Pj-Cm for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Nov 2009 01:15:09 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/nIQ4AAvRlVnj+N1DkM7qXnVjmLA1acrc91jOIHFAzjH4+qGuvIRIwaiyMwJE6eQ3uZkdQ3YhxdTi+NwvDAsAmHDMpqd/M7P5azE8y+5/p8MtyLK69XrlwYOrT7wREaqz5DHxjeCnhEw== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Sun, 22 Nov 2009 02:34:15 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+Q8KSHPaFw0QaXTRfAykGwa7IhEnZr4so= X-Face: %4KI#W/E.D'"lc~N*Pq8SxA_Y{M+7y4]&d3R$:xoXY`b%$4aZa-0; <6!][&7qTL^/\{h 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:70018 Archived-At: Daniel Dalton 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?