Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 R 主要模式用于 emacs 中的另一个文件扩展名(用于语法类似于 R 的不受支持的语言)。
如何强制 emacs 更改我正在编辑的缓冲区的主要模式?如何更改我的 .emacs 以将主要模式与特定文件扩展名永久关联?
这应该有效:
(add-to-list 'auto-mode-alist '("\\.rr" . R-mode))