[Emacs] Fix eshell clear alias
This commit is contained in:
parent
446db02df4
commit
a70aac1ba5
@ -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, let’s
|
clears the screen it also scrolls all the way down. Therefore, let’s
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user