help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Order in which hooks and defaults are applied, especially set-fill-colum


From: Adam
Subject: Order in which hooks and defaults are applied, especially set-fill-column.
Date: Tue, 02 Dec 2003 15:21:26 GMT

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]