summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eshell-conf.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/eshell-conf.el b/eshell-conf.el
index 59a0150..d0fc491 100644
--- a/eshell-conf.el
+++ b/eshell-conf.el
@@ -47,8 +47,8 @@
(defun eshell-clear ()
(interactive)
(delete-region eshell-last-output-end (point))
- (insert "clear t")
- (eshell-send-input))
+ (eshell/clear t)
+ (eshell-emit-prompt))
;;;###autoload
(defun eshell/j (&rest args)