Buffer switching module for emacs