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")))
TeX-view
(C-c C-v
)? – Dan♦ Jul 3 '15 at 15:29C-c C-v
nothing happens. I don't understand why. If you know a simple customization in the.emacs
which makesC-c C-v
works , I would be happy to use it. My OS is Windows and my pdf viewer is located atC:\Program Files\SumatraPDF\sumatrapdf.exe
. In that link lawlist has provided a comprehensive link. I am only interested to make TeX-viewer works. – Name Jul 3 '15 at 19:26TeX-view-program-list
. – Dan♦ Jul 3 '15 at 19:31