From 2d3eab7a352aea9a078fe5340b7283c00a67d299 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 May 2020 13:04:10 -0400 Subject: [PATCH] Make C-c {h,j,k,l} eshell keybinds evil-only The h,j,k,l paradigm is distinctly vim's, and should not be bound for vanilla users, so now it's only available to evil users. Also, since C-c l is the vanilla localleader prefix, this causes "Key sequence C-c l b starts with non-prefix key C-c l" errors. Fixes #3224 --- modules/term/eshell/config.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/term/eshell/config.el b/modules/term/eshell/config.el index 0b16b51f1..ca79f20dc 100644 --- a/modules/term/eshell/config.el +++ b/modules/term/eshell/config.el @@ -137,6 +137,10 @@ You should use `set-eshell-alias!' to change this.") :ni "C-j" #'eshell-next-matching-input-from-input :ni "C-k" #'eshell-previous-matching-input-from-input :ig "C-d" #'+eshell/quit-or-delete-char + :i "C-c h" #'evil-window-left + :i "C-c j" #'evil-window-down + :i "C-c k" #'evil-window-up + :i "C-c l" #'evil-window-right "C-s" #'+eshell/search-history ;; Emacs bindings "C-e" #'end-of-line @@ -144,10 +148,6 @@ You should use `set-eshell-alias!' to change this.") "C-c s" #'+eshell/split-below "C-c v" #'+eshell/split-right "C-c x" #'+eshell/kill-and-close - "C-c h" #'windmove-left - "C-c j" #'windmove-down - "C-c k" #'windmove-up - "C-c l" #'windmove-right [remap split-window-below] #'+eshell/split-below [remap split-window-right] #'+eshell/split-right [remap doom/backward-to-bol-or-indent] #'eshell-bol