help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Run terminal command with output in current buffer


From: lisa-asket
Subject: Run terminal command with output in current buffer
Date: Fri, 16 Jul 2021 11:04:02 +0200 (CEST)


It guided we to this command.  I wonder how to call the command from my init 
file, have my own

function for it.



(shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER)



What shall I do with output-buffer ?


From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Run terminal command with output in current buffer
Date: 16/07/2021 09:07:21 Europe/Paris

> From: lisa-asket@perso.be
> Date: Fri, 16 Jul 2021 08:43:27 +0200 (CEST)
> 
> How can I run a terminal command and insert the output in the current buffer?

"C-u M-! the command RET"

See the doc string of M-! for details.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]