From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: howto suffix based fill-column? Date: 10 Aug 2003 14:07:05 -0400 Organization: Yale University Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5lhe4pqtdi.fsf@rum.cs.yale.edu> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1060543182 27428 80.91.224.253 (10 Aug 2003 19:19:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Aug 2003 19:19:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 10 21:19:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19lvjB-00014o-00 for ; Sun, 10 Aug 2003 21:19:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19lvfY-0006Lz-Ej for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Aug 2003 15:15:56 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!canoe.uoregon.edu!news.wss.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: rum.cs.yale.edu Original-X-Trace: news.wss.yale.edu 1060538830 7341 128.36.229.169 (10 Aug 2003 18:07:09 GMT) Original-X-Complaints-To: news@news.wss.yale.edu Original-NNTP-Posting-Date: Sun, 10 Aug 2003 18:07:09 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 10 Aug 2003 14:07:06 -0400, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:115785 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11704 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11704 >>>>> "Eike" == Eike Kroemer writes: > can someone kind provide me with some code for my .emacs that will do > the following: > if (suffix-of-file == eml) > enter text mode > (setq fill-column 68) > else > (setq fill-column 79) > end (define-derived-mode eml-mode text-mode "EML" "Mode for EML files."   ;; Add more EML-specific settings here. (set (make-local-variable 'fill-column) 68)) ;; Make .eml files use eml-mode. (add-to-list 'auto-mode-alist '("\\.eml\\'" . eml-mode)) To set the rest to 79 column, try something like (setq-default fill-column 79) Stefan