Emacs tip

 

Insert From Subshell

I wanted to insert the current date and time into my current buffer position.

The key sequence is: '<ctl>u<alt>!' allows you to pull output from a subshell command.

So I insert a formatted date like this:

My input: <ctl>u<alt>!date --rfc-3339=seconds

What I got: 2015-03-11 10:58:55-05:00 (with a newline at the end)