Command to clear shell while using emacs shell
Update February 2015 Just noticed that Emacs now (version 25+) has the command comint-clear-buffer, bound to C-c M-o by default, that does what we need here, and probably is preferable to the answers I originally posted below. Options to consider: C-l will recenter the buffer. Pressing it repeatedly cycles the buffer, so that point appears … Read more