diff --git a/emacs/init.org b/emacs/init.org index 66f97ab..3fca2e6 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2183,8 +2183,8 @@ A function to properly clear the eshell: (eshell-emit-prompt) (insert input))) - (with-eval-after-load 'eshell - (general-def eshell-mode-map "C-c C-o" #'clear-eshell)) + (add-hook 'eshell-mode-hook + (lambda () (general-def eshell-mode-map "C-c C-o" #'clear-eshell))) #+END_SRC Some aliases: