[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to set shell output always to *Shell Command Output*
From: |
TheFlyingDutchman |
Subject: |
Re: how to set shell output always to *Shell Command Output* |
Date: |
Wed, 08 Dec 2010 15:28:43 -0000 |
User-agent: |
G2/1.0 |
On Sep 12, 11:17 pm, Xah Lee <xah...@gmail.com> wrote:
> when running a shell command, if the output is small, it shows in the
> “*Messages*” buffer.
>
> is there a way to always have the output in the “*Shell Command
> Output*” buffer?
>
> thanks.
>
> Xah
Hello,
This is in reply to a message I lost track of in Gnus.
To always send a command output to a specified buffer.
(defun shell-command-with-buffer(cmd)
(interactive "sCommand:")
(shell-command cmd (set-buffer (get-buffer-create "*Shell Command
Output*")) nil))
Thanks.
mp
--
Michael Powe mich...@trollope.org Naugatuck CT USA
Re: how to set shell output always to *Shell Command Output*,
TheFlyingDutchman <=