[Emacs] Set eshell/clear as eshell/clear-scrollback

I cannot understand the reason why this is not the default behaviour.
This commit is contained in:
Lucien Cartier-Tilet 2021-11-18 20:07:27 +01:00
parent ae412d9525
commit 9d66c2a22c
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -2744,8 +2744,15 @@ respectively allow me to open a file in Emacs, and same but in another
window. window.
#+name: eshell-alias-open #+name: eshell-alias-open
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no
(defalias 'open 'find-file) (defalias 'open #'find-file)
(defalias 'openo 'find-file-other-window) (defalias 'openo #'find-file-other-window)
#+end_src
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
alias it to ~eshell/clear-scrollback~ which has the correct behavior.
#+begin_src emacs-lisp
(defalias 'eshell/clear #'eshell/clear-scrollback)
#+end_src #+end_src
As you see, these were not declared in my dedicated aliases file but As you see, these were not declared in my dedicated aliases file but