I'm trying to figure out Elisp, and I've hit a roadblock.
I want a function that will Indent the entire file. Right now, I'm selecting the whole file (C-x h) and then doing M-x indent-region (which does have a shortcut key).
I'd like to combine that in to a single keypress, but can't figure out how to do C-x h in a function.
Thanks