unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eshell: how do you clear the *eshell* buffer?
@ 2007-08-31 12:12 Petter Gustad
  2007-08-31 13:04 ` weber
  0 siblings, 1 reply; 2+ messages in thread
From: Petter Gustad @ 2007-08-31 12:12 UTC (permalink / raw)
  To: help-gnu-emacs


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: eshell: how do you clear the *eshell* buffer?
  2007-08-31 12:12 eshell: how do you clear the *eshell* buffer? Petter Gustad
@ 2007-08-31 13:04 ` weber
  0 siblings, 0 replies; 2+ messages in thread
From: weber @ 2007-08-31 13:04 UTC (permalink / raw)
  To: help-gnu-emacs

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-31 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31 12:12 eshell: how do you clear the *eshell* buffer? Petter Gustad
2007-08-31 13:04 ` weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).