Emacs auto-minor-mode based on extension
- by vermiculus
I found this question somewhat on the topic, but is there a way [in emacs] to set a minor mode (or a list thereof) based on extension? For example, it's pretty easy to find out that major modes can be manipulated like so
(setq auto-mode-alist
(cons '("\\.notes$" . text-mode)
auto-mode-alist))
and what I'd ideally like to be able to do…