all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam <a24061@yahoo.munged>
Subject: Re: Order in which hooks and defaults are applied, especially set-fill-column.
Date: Wed, 03 Dec 2003 22:17:08 GMT	[thread overview]
Message-ID: <Ehtzb.18872$7X5.174585081@news-text.cableinet.net> (raw)
In-Reply-To: jwvptf5k6ab.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca

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

      reply	other threads:[~2003-12-03 22:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Ehtzb.18872$7X5.174585081@news-text.cableinet.net' \
    --to=a24061@yahoo.munged \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.