From 012b97fafb44aff4569265026087ba36c21bcd97 Mon Sep 17 00:00:00 2001 From: Benjamin Levy <7348004+io12@users.noreply.github.com> Date: Sun, 21 Nov 2021 13:05:18 -0500 Subject: [PATCH] tweak(eshell): bind C-l to clear-scrollback Make C-l have the same behavior as the clear alias by clearing the scrollback. --- modules/term/eshell/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/term/eshell/config.el b/modules/term/eshell/config.el index c47dea24b..95dff3460 100644 --- a/modules/term/eshell/config.el +++ b/modules/term/eshell/config.el @@ -147,7 +147,7 @@ You should use `set-eshell-alias!' to change this.") [remap evil-window-split] #'+eshell/split-below [remap evil-window-vsplit] #'+eshell/split-right ;; To emulate terminal keybinds - "C-l" #'eshell/clear + "C-l" (cmd! (eshell/clear-scrollback) (eshell-emit-prompt)) (:localleader "b" #'eshell-insert-buffer-name "e" #'eshell-insert-envvar