Emacs: How to use a major mode for non-standard file extension June 3, 2023 by Tarik This should work: (add-to-list 'auto-mode-alist '("\\.rr" . R-mode))