Currently I can use sgml-pretty-print to print an XML file in emacs, but this is a manual process:
- M- <
- C space
- M →
- Mx sgml-pretty-print
I would like this to happen automatically (or at least have some kind of option). I am new to emacs / elisp and don't understand how:
- emacs knows what code to run when opening a file (does this start with files.el?)
- If you want to override this code with your own, how to do it
source
share