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

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

Re: Silent (shell-command)


From: Christopher Schmidt
Subject: Re: Silent (shell-command)
Date: Sat, 1 Sep 2012 00:23:57 +0100 (BST)

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
> Is there a way to run a shell-command without emacs creating any kind
> of output buffer when it's completed? I've tried using "&" but the
> buffer just changes to "Async Output Buffer". I'd just like emacs to
> silently run the command in the background, preferably without
> blocking. Any ideas?

    (global-set-key [remap shell-command]
                    (lambda ()
                      (interactive)
                      (let ((display-buffer-overriding-action (cons (lambda (_1 
_2) 'rms) nil)))

                        (call-interactively 'shell-command))))

        Christopher



reply via email to

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