Mark region, indent, restore location

from blog lmno.lol @alvaro, | ↗ original
When I'm not using an automatic code formatter (ie. clang-format, gofmt, etc.), I often find myself using Emacs region marking commands like mark-defun, er/expand-region, and mark-whole-buffer prior to pressing , which is bound to indent-for-tab-command. This is all working as expected: the selection gets indented and the point is left in the...