Skip to main content
1 of 2
Yiang Xin
  • 129
  • 1
  • 3

Get output of external command in the buffer

How do I get the output of (shell-command "df") (or some other more complex command, that I don't want to retype often) in the current buffer?

I run it typing C-c p after it, but then it opens another buffer and sends the output there.

Yiang Xin
  • 129
  • 1
  • 3