[英]Activate latex-mode for .tikz files in Emacs
How can I make latex-mode to apply to files with .tikz extension in Emacs? 如何将latex模式应用于Emacs中扩展名为.tikz的文件? (I am using Auctex)
(我正在使用Auctex)
You can run Mx latex-mode
in the file buffer. 您可以在文件缓冲区中运行
Mx latex-mode
。 If you want to automatically do this for every file you visit add the following to .emacs
, 如果要为您访问的每个文件自动执行此操作,请将以下内容添加到
.emacs
,
(setq auto-mode-alist
(append
'(("\\.tikz\\'" . latex-mode))
auto-mode-alist))
auto-mode-alist
is a list of file types and the mode to apply as you may have guessed. auto-mode-alist
是您可能已经猜到的文件类型列表和要应用的模式。 You can run Ch v auto-mode-alist
to get a description of the variable for your emacs. 您可以运行
Ch v auto-mode-alist
来获取emacs变量的描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.