Emacs: How to use a major mode for non-standard fi

2019-01-12 10:49发布

I'd like to use R major mode for another file extension in emacs (for an unsupported language with syntax similar to R).

How do I force emacs to change the major mode for a buffer I'm editing? How do I change my .emacs to permanently associate a major mode with a particular file extension?

1条回答
你好瞎i
2楼-- · 2019-01-12 11:16

This should work:

(add-to-list 'auto-mode-alist '("\\.rr" . R-mode))
查看更多
登录 后发表回答