diff options
author | JSDurand <mmemmew@gmail.com> | 2021-05-18 15:31:32 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-05-18 15:31:32 +0800 |
commit | 34fc55b75edd5c809134e418702abc2b3d0c8146 (patch) | |
tree | 0b93eaa22a00e5daf6199ca2b52265ba0eb72170 | |
parent | 89469b8be78c35bbe325ecb488b1c72f988ed52a (diff) |
Make eshell-clear a separate function.
* eshell-conf.el (eshell-clear): Refactor into a standalone function.
-rw-r--r-- | eshell-conf.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/eshell-conf.el b/eshell-conf.el index 6bb255a..59a0150 100644 --- a/eshell-conf.el +++ b/eshell-conf.el @@ -41,11 +41,14 @@ (defun durand-set-eshell-keys () "Set my key-bindings." (define-key eshell-mode-map (vector #xf) ; C-o - (lambda () - (interactive) - (delete-region eshell-last-output-end (point)) - (insert "clear t") - (eshell-send-input)))) + #'eshell-clear)) + +;;;###autoload +(defun eshell-clear () + (interactive) + (delete-region eshell-last-output-end (point)) + (insert "clear t") + (eshell-send-input)) ;;;###autoload (defun eshell/j (&rest args) |