[Emacs] Fix eshell clear alias

This commit is contained in:
Lucien Cartier-Tilet 2022-05-02 18:49:00 +02:00
parent 446db02df4
commit a70aac1ba5
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -3297,6 +3297,7 @@ though.
<<eshell-alias-file>> <<eshell-alias-file>>
<<eshell-concat-shell-command>> <<eshell-concat-shell-command>>
<<eshell-alias-open>> <<eshell-alias-open>>
<<eshell-alias-clear>>
<<eshell-alias-buffers>> <<eshell-alias-buffers>>
<<eshell-alias-emacs>> <<eshell-alias-emacs>>
<<eshell-alias-mkcd>> <<eshell-alias-mkcd>>
@ -3350,7 +3351,8 @@ window.
The default behavior of ~eshell/clear~ is not great at all, although it The default behavior of ~eshell/clear~ is not great at all, although it
clears the screen it also scrolls all the way down. Therefore, lets clears the screen it also scrolls all the way down. Therefore, lets
alias it to ~eshell/clear-scrollback~ which has the correct behavior. 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) (defalias 'eshell/clear #'eshell/clear-scrollback)
#+end_src #+end_src