emacs: fix shell-mode autoscrolling