and while I’m here, how can I run a command on save? I find the current whitespace package to be dreadful. I just want to erase whitespace at the end of lines, and remove all empty lines at the bottom of the file (not insert a blank line).
This package has an implementation of how to subscribe to an event that will notify you when an editor is saved.
And if you go into
Settings -> Keybindings and search for “window:focus”, you will see all the keybindings for changing focus.