From a70aac1ba5d62d7432f62ac348abc9eaaa4d54b8 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 2 May 2022 18:49:00 +0200 Subject: [PATCH] [Emacs] Fix eshell clear alias --- org/config/emacs.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index 807eb3f..a1c3ead 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -3297,6 +3297,7 @@ though. <> <> <> + <> <> <> <> @@ -3350,7 +3351,8 @@ window. The default behavior of ~eshell/clear~ is not great at all, although it clears the screen it also scrolls all the way down. Therefore, let’s alias it to ~eshell/clear-scrollback~ which has the correct behavior. -#+begin_src emacs-lisp +#+name: eshell-alias-clear +#+begin_src emacs-lisp :tangle no (defalias 'eshell/clear #'eshell/clear-scrollback) #+end_src