Ads by Google

Wednesday, May 21, 2008

An useful emacs shell setting

This is another useful addition to your .emacs; To prevent that command line from staying at the bottom in your emacs shell. Though this doesn't seem to work on my win32 emacs and cygwin bash shell.

hmmm....

Edit: in the same thread the following suggestion works for win32 Emacs at least.

(setq comint-output-filter-functions '(comint-watch-for-password-prompt))

Now, the prompt is pretty much centred in the middle of the screen

Edit 2: More additions, this seems to be the correct way

(add-hook 'shell-mode-hook
(lambda ()
(remove-hook 'comint-output-filter-functions
'comint-postoutput-scroll-to-bottom
t))) ; LOCAL




No comments: