[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell: how do you clear the *eshell* buffer?
From: |
weber |
Subject: |
Re: eshell: how do you clear the *eshell* buffer? |
Date: |
Fri, 31 Aug 2007 13:04:15 -0000 |
User-agent: |
G2/1.0 |
On 31 ago, 09:12, Petter Gustad <newsma...@gustad.com> wrote:
> Probably a stupid question, but how do you clear the *eshell* buffer
> in eshell mode? C-h C-w does not work since it's a read-only
> buffer.
>
> Petter
> --
> ________________________________________________________________________
> Petter Gustad 8'h2B | ~8'h2B http://www.gustad.com/petter
Clearing EShell Buffer
When the eshell buffer gets too large, you can simple type the command
clear within the eshell to clear the entire buffer.
(defun eshell/clear ()
"04Dec2001 - sailor, to clear the eshell buffer."
(interactive)
(let ((inhibit-read-only t))
(erase-buffer)))
(from here: http://www.khngai.com/emacs/eshell.php)