Emacs multi select fixes

This fixes multi selection actions for various commands with the emacs key handler. 
In the current version you can pass a function directly see https://github.com/ajaxorg/ace/blob/master/lib/ace/multi_select.js#L483