我使用auctex编写语言文本,其中包含许多使用exe环境的示例,如下所示:
\begin{exe} \ex (some text, glossed examples, etc.) \end{exe}
现在,我想让绑定到M-RET的LaTeX-insert-item自动插入\ex
而不是\item
在这个环境中,就像它与description
-environment和其他环境一样.文档告诉我,我可以自定义LaTeX-item-list以实现此目的,但是
当我尝试customize-variable RET LaTeX-item-list
我得到一个"不匹配"的错误
LaTeX-item-list的文档声明它是"项目具有特殊语法的环境列表.
cdr是函数的名称,用于插入这种项目."
现在我读到这些列表有一个表单的语法(汽车.cdr),所以我的猜测是我应该把我的.emacs文件放入沿着这条线
setq LaTeX-item-list (quote ("exe" . "function-to-insert-\ex-label")))
但我对elisp的实际知识相当薄,所以我真的不确定这是不是正确的方法.有人可以帮帮我吗?