use-package, is there a way to associate more than one file extension with a particular mode in one place instead of multiple locations?
Case in point is that I would like to associate both
jsx files with js2-mode. Currently what I have is:
(use-package js2-mode :mode "\\.js\\'" :init (setq js2-highlight-level 3) (add-hook 'js2-mode-hook (lambda () (auto-revert-mode) (setq auto-revert-interval 0.1))) :ensure t) (add-to-list 'auto-mode-alist '("\\.jsx\\'" . js2-mode))
... which I don't like as the extensions are specified in two different places.