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.
我需要在tuareg.el中进行哪些更改才能让 Emacs 自动为 .ml4 文件加载tuareg-mode?
我可以轻松地手动更改为tuareg 模式,但不必这样做会很好。
你不需要改变tuareg.el,但你的.emacs
tuareg.el
.emacs
(setq auto-mode-alist (cons '("\\.ml[iylp]?$" . tuareg-mode) auto-mode-alist))
你必须在你的.emacs所以改变它
(setq auto-mode-alist (cons '("\\.ml[iylp4]?$" . tuareg-mode) auto-mode-alist))
最好的 :-)