See EshellAlias for solutions to simpler problems. Very Simple ExampleThis example is so simple, it could have been solved using an alias. This example is also from KaiGrossjohann. (defun eshell/pcvs-update (&rest args) "Invoke `M-x cvs-update RET' on the given directory." (cvs-update (pop args) nil)) Dealing With Wildcards and Multiple FilesAssume you want to define an alias ‘emacs’ for ‘find-fil