diff options
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/esh-mode.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index da83ec6a6ab..15120cb61d4 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el | |||
| @@ -871,6 +871,13 @@ When run interactively, widen the buffer first." | |||
| 871 | (goto-char (point-max)) | 871 | (goto-char (point-max)) |
| 872 | (recenter -1)) | 872 | (recenter -1)) |
| 873 | 873 | ||
| 874 | (defun eshell/clear () | ||
| 875 | "Scroll contents of eshell window out of sight, leaving a blank window." | ||
| 876 | (interactive) | ||
| 877 | (let ((number-newlines (count-lines (window-start) (point)))) | ||
| 878 | (insert (make-string number-newlines ?\n))) | ||
| 879 | (eshell-send-input)) | ||
| 880 | |||
| 874 | (defun eshell-get-old-input (&optional use-current-region) | 881 | (defun eshell-get-old-input (&optional use-current-region) |
| 875 | "Return the command input on the current line." | 882 | "Return the command input on the current line." |
| 876 | (if use-current-region | 883 | (if use-current-region |