Hot answers tagged


Is this what you were looking for? editor=emacs $editor # This will invoke emacs.


You can't make bash to invoke commands during echo as far as I know. If I understand well your question you are searching for alias keyword. alias editor='emacs' editor # will invoke emacs You can store the alias in your .bashrc or just edit on-the-fly as you wish.


I'm absolutely new to emacs but I can suggest the following: M-b to move backward over a word M-d to kill up to the end of the word Now you can write a new word. Works almost like cw in vim

Only top voted, non community-wiki answers of a minimum length are eligible