How to print, all file extensions & the mapped major modes (and possibly minor modes...) in emacs? like this,
*.js js-mode
*.json js-mode
*.c c-mode
Which global map variable contains this information?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityThat information is a F1 v auto-mode-alist
away which displays the variable auto-mode-alist
that holds the associations between file names and major modes. As its docstring points out similiar lists playing a role would be interpreter-mode-alist
(which uses shebangs) and the more generic magic-mode-alist
.