1

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?

1 Answer 1

4

That 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.