From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Newsgroups: gmane.emacs.help Subject: How to use set-fill-column as a hook? Date: Tue, 10 Dec 2002 14:57:06 GMT Organization: n/a Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6hnJ9.5028$ci6.42894520@news-text.cableinet.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1039533374 16920 80.91.224.249 (10 Dec 2002 15:16:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2002 15:16:14 +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 18Lm7E-0004O0-00 for ; Tue, 10 Dec 2002 16:16:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LlsU-0005Hy-06 for gnu-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2002 10:00:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-text.cableinet.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 80.194.70.67 Original-X-Complaints-To: abuse@blueyonder.co.uk Original-X-Trace: news-text.cableinet.net 1039532226 80.194.70.67 (Tue, 10 Dec 2002 14:57:06 GMT) Original-NNTP-Posting-Date: Tue, 10 Dec 2002 14:57:06 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:107948 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4490 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4490 I have the following in ~/.emacs: (add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'latex-mode-hook 'turn-on-auto-fill) I now want to set the fill-column differently for LaTeX files. This doesn't do anything (I verified with C-h v that the value of fill-column is 70, the default): (add-hook 'latex-mode-hook '('set-fill-column 100)) This gives an error when starting emacs: (add-hook 'latex-mode-hook ('set-fill-column 100)) What's the correct syntax? Also, once I've done that, can I set it differently for mail-mode and text-mode? Thanks, Adam