auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Problem with latex2e style hook --- LaTeX/Texinfo collision


From: Mosè Giordano
Subject: Re: [AUCTeX] Problem with latex2e style hook --- LaTeX/Texinfo collision
Date: Sat, 2 Jan 2016 19:11:03 +0100

Hi Vincent,

I am looking into adding the dialect to the data written by
`TeX-auto-store', it's very simple to implement it (5 lines in total),
but I have only one concern: why is there :latex but not :tex?  Is it
because they're essentially the same or do you think it would be
better to have a different dialect for TeX files?  I'm asking this
question because with my simple implementation I use the value of
`TeX-style-hook-dialect' in the buffer, but its value is :latex also
for TeX files and it's no clear to me whether it may cause problems.
I can also select the value of the dialect to be written looking to the
`major-mode' variable, but the problem with TeX files is still there:
what to do in that case?  The same question may be raised also for
ConTeXt files: is :latex fine in that case?

Bye,
Mosè


2014-08-18 9:02 GMT+02:00 Tassilo Horn <address@hidden>:
> Vincent Belaïche <address@hidden> writes:
>
> Hi Vincent,
>
>> Now if you have some foo.tex in some directory sd/ containing some
>> \usepackage{foo} you will have an AUCTeX style "foo" that will load two
>> hooks:
>> * one from auctex/styles/foo.el, and
>> * one from sd/auto/foo.el
>
> Just to complete, it'll also load
>
>   ~/.emacs.d/auctex/style/foo.el (TeX-style-private)
>   sd/style/foo.el (TeX-style-local)
>
> Bye,
> Tassilo
>



reply via email to

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