all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Order in which hooks and defaults are applied, especially set-fill-column.
@ 2003-12-02 15:21 Adam
  2003-12-03 18:23 ` Kevin Rodgers
  2003-12-03 20:15 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Adam @ 2003-12-02 15:21 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-03 22:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-02 15:21 Order in which hooks and defaults are applied, especially set-fill-column Adam
2003-12-03 18:23 ` Kevin Rodgers
2003-12-03 20:15 ` Stefan Monnier
2003-12-03 22:17   ` Adam

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.