Sunday, November 9, 2008

Inserting the output of a shell command into the current buffer in Emacs

Simple:

do: C-u M-!
then enter the shell command in the mini-buffer.

e.g.: C-u M-! date inserts the current date and time if you're on Linux. If you're using Windows, it inserts a lot of crap because that's the command to set the date.

No comments: