Frage

In Emacs, How I can invoke the alias with M-x ? For example, I have alias to open the file as in 'alias ff find-file $1'. I like to invoke it as M-x ff RETURN $1. Similarly, I have defined alias for viewing directories, and I like to invoke that with M-x without providing arguments.

War es hilfreich?

Lösung

For that you should define your alias as being a global Emacs alias rather than one specific to Eshell:

(defalias 'ff 'find-file)
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top