[Top][All Lists]

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

Re: [Fwd: Re: auto-fill in Emacs-22.1]

From: Stefan Monnier
Subject: Re: [Fwd: Re: auto-fill in Emacs-22.1]
Date: Wed, 30 Jan 2008 15:07:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> |> (define-derived-mode fp-gldn-mode My-dn-mode "glossaire sanskrit"
> |> ~  (turn-off-auto-fill))
> (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)

The LaTeX-mode-hook should (ideally) be run after the end of LaTeX-mode *or its
derivative*.  I.e. if My-dn-mode runs LaTeX-mode, then latex-mode-hook
will be run after (turn-off-auto-fill).

> Needed because latex-mode does not turn on autofill (I am using Auctex)
> and my "gldn mode" loads latex-mode.

> How to get auto-fill in latex mode, and not in these gldn mode files? It
> was perfectly working in 21.4!

You could do

  (add-hook 'fp-gldn-mode-hook 'turn-off-auto-fill)

-- Stefan

reply via email to

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