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 13:48:25 +0200 (CEST)

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 13:32:40 Europe/Paris

> From: lisa-asket@perso.be
> 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 ?

Did you read the doc string? It answers your question quite
explicitly.

I can go without it, but I have put (current-buffer).



reply via email to

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