From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Newsgroups: gmane.emacs.help Subject: Order in which hooks and defaults are applied, especially set-fill-column. Date: Tue, 02 Dec 2003 15:21:26 GMT Organization: n/a Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: 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 1070380587 27039 80.91.224.253 (2 Dec 2003 15:56:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 15:56:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 16:56:24 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 1ARCsy-0002GK-00 for ; Tue, 02 Dec 2003 16:56:24 +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 1ARDpu-0004oX-24 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2003 11:57:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!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: 24 Original-NNTP-Posting-Host: 82.38.176.161 Original-X-Complaints-To: abuse@blueyonder.co.uk Original-X-Trace: news-text.cableinet.net 1070378486 82.38.176.161 (Tue, 02 Dec 2003 15:21:26 GMT) Original-NNTP-Posting-Date: Tue, 02 Dec 2003 15:21:26 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:118909 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:14851 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14851 My ~/.emacs contains the following: ... ;; 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))) ... But when I open a LaTeX file, auto-fill is on and it wraps at 70. HTML and XML files both open the way I want (with auto-fill off). Is it possible to configure it to run the way I want -- wrapping LaTeX at 100, not wrapping HTML and XML, and wrapping everything else at 70? Thanks, Adam