Ralf Angeli <[EMAIL PROTECTED]> writes:

> * 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 ...
>

Ah! I see.  Ok, now it works, no need to change the variable
"LaTeX-item-regexp".  Thanks.

BTW, how could I tell that `LaTeX-item-list' is buffer-local? I mean
did I miss something obvious?

Thanks,
Nikos






_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to