Hi Joost,

2015-10-13 19:01 GMT+02:00 Joost Kremers <joostkrem...@fastmail.fm>:
> On Di, Okt 13 2015, Mandar Mitra <mandar.mi...@gmail.com> wrote:
>> I use xetex as my default TeX-engine, and it seems to handle pstricks 
>> without any problems, but style/pstricks.el contains the following:
>>
>>     780    (unless (member "pst-pdf" TeX-active-styles)
>>     781      (TeX-PDF-mode-off))
>>
>> So whenever I use the pstricks package, I have to turn TeX-PDF-mode on
>> by hand.
>
> I usually put `TeX-PDF-mode: t` to my local variable block to avoid
> this.
>
> Which, BTW, reminds me of a question I've often been wondering (but
> never got round to asking here): AUCTeX inserts a local variable block
> into a new TeX file to set the mode and the TeX-master. Is it possible
> to customise this block, or is it hard-coded?
>
> Mmm, ok, so I've looked at the source a bit and it seems to be
> hardcoded... So I guess my question becomes: would it be possible to
> allow adding custom variables to the local variable block that gets
> inserted into new files?

Uhm, no, not really, but you may try to add a function to
`TeX-update-style-hook' which is run when the styles are updated, also
when creating a new file, that should be what you want.
`add-file-local-variable' is very handy for this purpose.

Cheers,
Mosè

_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to