From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: help with setq for specific file types.... Date: 30 Sep 2002 14:40:11 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1033397773 22778 127.0.0.1 (30 Sep 2002 14:56:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Sep 2002 14:56:13 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17w1xz-0005vD-00 for ; Mon, 30 Sep 2002 16:56:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17w1yF-0000lA-00; Mon, 30 Sep 2002 10:56:27 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!micro-heart-of-gold.mit.edu!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!news.chips.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1033396811 21752 9.2.16.245 (30 Sep 2002 14:40:11 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 30 Sep 2002 14:40:11 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: nntp.stanford.edu gnu.emacs.help:105543 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2087 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2087 This is usually done in a hook. Example: (add-hook 'c-mode-common-hook (function (lambda () (setq c-basic-offset 4) ))) twylie writes: > > 1. I want to be able to do a setq for specific file types. For example, > any file that ends with .html I would like to use (setq-default > line-spacing 12). I see how to add file suffixes to alist -- but not how > to set setq values. Can someone help me here? -- -- Ken Goldman kgold@watson.ibm.com 914-784-7646