문제

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?

도움이 되었습니까?

해결책

This should work:

(add-to-list 'auto-mode-alist '("\\.rr" . R-mode))
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top