From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gijs Hillenius Newsgroups: gmane.emacs.help Subject: auto-mode-alist, adding two modes Date: Mon, 08 Oct 2007 17:33:52 +0200 Message-ID: <878x6dboyn.fsf@hillenius.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191866395 25367 80.91.229.12 (8 Oct 2007 17:59:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2007 17:59:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 08 19:59:53 2007 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 1Iewst-0000WW-UR for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2007 19:59:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iewso-0004uw-BC for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2007 13:59:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!transit2.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help X-Operating-System: Debian GNU/Linux Sid User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:oDGsvPfsmJTXKapBSeMpDVhkm3E= Original-Lines: 29 Original-NNTP-Posting-Host: 82.93.230.201 Original-X-Trace: 1191857632 news.xs4all.nl 231 [::ffff:82.93.230.201]:40857 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: shelby.stanford.edu gnu.emacs.help:152703 X-Mailman-Approved-At: Mon, 08 Oct 2007 13:58:55 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:48217 Archived-At: Hi I would like to get emacs to use longlines-mode *and* flyspell-mode for all files ending in .txt If I add this in my .emacs (add-to-list 'auto-mode-alist '("\\.txt\\'" . longlines-mode )) followed by a similar line for flyspell, ignores the first, and uses only the latter. I've tried several more complicated incantations, but I'm not exactly fluent in lisp. Would appreciate a hint or two.. Thx Gijs -- The genius of our ruling class is that it has kept a majority of the people from ever questioning the inequity of a system where most people drudge along paying heavy taxes for which they get nothing in return. -- Gore Vidal