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

后端 未结 1 1129
滥情空心
滥情空心 2020-12-04 02:53

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 mo

相关标签:
1条回答
  • 2020-12-04 03:20

    This should work:

    (add-to-list 'auto-mode-alist '("\\.rr" . R-mode))
    
    0 讨论(0)
提交回复
热议问题