Is it possible to run a shell command silently (in background)? When I use
async-shell-command, emacs split the windows. I would like that an specific shell command to be totally in background (without any visual effect).
As an explicit example, I have the following code (borrowed from https://emacs.stackexchange.com/a/7932). It opens the pdf version of the tex-file I working on. When running it, it splits the window, I would like to prevent it from this behavior in this particular situation.
(defun my-view-pdf () (interactive) (async-shell-command (concat "SumatraPDF " (file-name-base (buffer-file-name)) ".pdf")))