Long commands like this is what makes life easier with modes like e.g. emacs, where it would just be one command for each mode bound to the same place. The same can be done for compile/make/latex/whatever which is, in emacs, often bound to C-c C-c or similar :-).