From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Newsgroups: gmane.emacs.help Subject: Re: Order in which hooks and defaults are applied, especially set-fill-column. Date: Wed, 03 Dec 2003 22:17:08 GMT Organization: n/a Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1070490769 23034 80.91.224.253 (3 Dec 2003 22:32:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2003 22:32:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 23:32:45 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 1ARfY5-0007tB-00 for ; Wed, 03 Dec 2003 23:32:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARgV3-0005cA-6u for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Dec 2003 18:33:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!zen.net.uk!213.253.16.105.MISMATCH!mephistopheles.news.clara.net!news.clara.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: 28 Original-NNTP-Posting-Host: 82.38.176.161 Original-X-Complaints-To: abuse@blueyonder.co.uk Original-X-Trace: news-text.cableinet.net 1070489828 82.38.176.161 (Wed, 03 Dec 2003 22:17:08 GMT) Original-NNTP-Posting-Date: Wed, 03 Dec 2003 22:17:08 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:118971 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:14910 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14910 On Wednesday 03 December 2003 20:15, Stefan Monnier wrote: >> ;; AucTeX > > The default LaTeX editing mode in Emacs is `latex-mode' and runs > `latex-mode-hook'. The mode offered by AUCTeX is called `LaTeX-mode' > and runs `LaTeX-mode-hook'. My ~/.emacs now includes the stuff below and I believe everything works the way I want. ... ;; AucTeX (require 'tex-site) (add-to-list 'auto-mode-alist '("\\.tex\\'" . LaTeX-mode)) ;; auto-fill for certain modes (setq-default fill-column 70) (add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) (add-hook 'html-mode-hook 'turn-off-auto-fill) (add-hook 'xml-mode-hook 'turn-off-auto-fill) (add-hook 'LaTeX-mode-hook (lambda() (set-fill-column 100))) ... Thank you very much for your help! -- Adam