* Nikos Apostolakis (2006-04-13) writes:
> Ralf Angeli <[EMAIL PROTECTED]> writes:
>
>> * Nikos Apostolakis (2006-04-13) writes:
>>
>>> Thanks for your reply. I followed all your suggestions but
>>> unfortunately it didn't work.
>>
>> What does that mean exactly?
>
> I evaluated the following:
>
> (add-to-list 'LaTeX-item-list
> '("questions" . (lambda () (insert "\\question"))))
> (add-to-list 'LaTeX-item-list
> '("parts" . (lambda () (insert "\\part"))))
`LaTeX-item-list' is buffer-local. So you'd have to do this in a
function to be added to `LaTeX-mode-hook'. Or you try it with a style
file ...
> (LaTeX-add-environments '("questions" LaTeX-env-item))
> (LaTeX-add-environments '("parts" LaTeX-env-item))
Same here.
--
Ralf
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex