reddit / emacs

In Eshell, how do you alias to a lisp function?

avindroth · 2022-11-09 06:25
I have noticed something like: alias ff 'for i in ${eshell-flatten-list $*} {find-file $i}' for binding aliases. How do you bind aliases for lisp functions? For instance, I'd like to find file then switch to other window, in lisp syntax.
igorepst · 2022-11-09 08:06
`alias cls ig-eshell-clear t` aliases `cls` to call my custom function with parameter