From a1c4b96f84e4ca96d2f07fef3fe7485da019253e Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 14 Nov 2019 23:28:20 -0500 Subject: [PATCH] Make sure eshell is loaded before binding its keys --- emacs/init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.org b/emacs/init.org index 988c875..dc872e8 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1307,7 +1307,8 @@ A function to properly clear the eshell: (eshell-emit-prompt) (insert input))) - (general-def eshell-mode-map "C-c C-o" #'clear-eshell) + (with-eval-after-load 'eshell + (general-def eshell-mode-map "C-c C-o" #'clear-eshell)) #+END_SRC Some aliases: