auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] \verb like macro allowing input on more than one line


From: Tassilo Horn
Subject: Re: [AUCTeX] \verb like macro allowing input on more than one line
Date: Thu, 16 Oct 2014 16:58:14 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

jfbu <address@hidden> writes:

> I only have now to find why doctex-mode does not react, only
> latex-mode, (if I open my .dtx, it defaults to DocTeX mode, where for
> some reason the hook above is not executed, I have to do M-x
> latex-mode. If I open in a buffer a .tex file, no problem)

Hm, in theory doctex-mode (overridden by AUCTeX with TeX-doctex-mode) is
derived from TeX-latex-mode and should also run its hooks...

It that really doesn't work, try adding

  (add-hook 'docTeX-mode-hook
            #'fjbu/LaTeX-activate-font-lock-for-multiline-verb-macros)

in addition to just LaTeX-mode-hook.

Bye,
Tassilo




reply via email to

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