From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josef.Bauer.NOSPAM@web.de (Josef G. Bauer) Newsgroups: gmane.emacs.help Subject: Re: dired: launch program withou stalling emacs Date: Tue, 21 Jul 2009 08:34:00 +0200 Organization: SVOX Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248158453 18544 80.91.229.12 (21 Jul 2009 06:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2009 06:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 21 08:40:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MT91i-00044I-HY for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 08:40:38 +0200 Original-Received: from localhost ([127.0.0.1]:47231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MT91h-0002ks-U5 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 02:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: p4fefb4b5.dip0.t-ipconnect.de Original-X-Trace: online.de 1248158040 23020 79.239.180.181 (21 Jul 2009 06:34:00 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Tue, 21 Jul 2009 06:34:00 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:sipLd/axNyUdCiCUHqaEshpWHak= Original-Xref: news.stanford.edu gnu.emacs.help:171095 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66283 Archived-At: Hi, >>>>> "Alain" == Alain Muls writes: Alain> The inconvenience of this is that I have to close the Alain> program before I can resume working in emacs. Is there a Alain> possibility to launch the pdfviewer evince and be able to Alain> work in emacs without closing the pdfviewer? here is what I use (in my .emacs): ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun dired-do-shell-command-in-background (command) "In dired, do shell command in background on the file or directory named on this line." (interactive (list (dired-read-shell-command (concat "& on " "%s: ") nil (list (dired-get-filename))))) (call-process command nil 0 nil (dired-get-filename))) (add-hook 'dired-load-hook (function (lambda () (load "dired-x") (define-key dired-mode-map "&" 'dired-do-shell-command-in-background)))) (setq dired-guess-shell-alist-user (list (list "\\.wav$" "wavesurfer") (list "\\.au$" "wavesurfer") (list "\\.pdf$" "acroread") (list "\\.doc$" "OOo") (list "\\.xls$" "OOo") (list "\\.tif$" "gqview") (list "\\.jpg$" "gqview") (list "\\.html$" "firefox") (list "\\.htm$" "firefox"))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; H have posted this before, so you could have found it on the web. ;-) Greetings Josef