laziness, impatience, and hubris | |
PerlMonks |
Re: Command line preprocessingby clemburg (Curate) |
on Sep 01, 2001 at 18:45 UTC ( [id://109638]=note: print w/replies, xml ) | Need Help?? |
I do not know of any shell that has a feature that would allow one to do command preprocessing, but I have managed to persuade shell-mode in emacs to do what you want. Emacs shell-mode can be customized by setting some variables defined in the comint package. Put the following code in a file with ending ".el" (emacs lisp), and load it with the command "M-x load-file". After that, opening a shell buffer with "M-x shell" will give you a "shell" that does what you want. Quoting is achieved by enclosing the text to quote with "my-quote()". Emacs lisp code:
Works like this (excerpt from shell mode buffer):
Christian Lemburg
In Section
Seekers of Perl Wisdom
|
|