I can currently use sgml-pretty-print to pretty print an xml file in emacs, but it's a manual process:
- M-<
- C-space
- M->
- M-x sgml-pretty-print
I'd like this to happen automatically (or at least have some option to do so). I'm new to emacs/elisp, and do not understand how:
- emacs knows what code to run when you open a file (does this start in files.el?)
- If you wanted to override that code with your own, how to do that