[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell clear
From: |
Sauli Heinola |
Subject: |
Re: eshell clear |
Date: |
Wed, 24 Jun 2015 17:33:47 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
* Luca Ferrari <fluca1978@infinito.it>:
> Hi,
> this should be trivial, but how can I clear an eshell buffer
> (something similar to 'clear' command in many shells)?
You can write a function to do what you want.
--8<---------------cut here---------------start------------->8---
(defun eshell/clear ()
"Clear the eshell buffer."
(interactive)
(let ((inhibit-read-only t))
(erase-buffer)))
--8<---------------cut here---------------end--------------->8---
--
It's a bad trip but I'll take it.