From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: dired + associating external programs Date: Sat, 24 Nov 2007 08:33:25 +0100 Message-ID: <871wagkshm.fsf@thievol.homelinux.org> References: <87tzncxqio.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195890919 30819 80.91.229.12 (24 Nov 2007 07:55:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 07:55:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 24 08:55:24 2007 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 1IvprG-0006d6-Ug for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 08:55:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ivpr2-0006t0-Fi for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 02:55:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IvpUz-0000wL-9F for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 02:32:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IvpUx-0000uA-8W for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 02:32:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvpUx-0000tu-4p for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 02:32:19 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IvpUw-0000lB-DM for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 02:32:18 -0500 Original-Received: by nf-out-0910.google.com with SMTP id f5so44856nfh for ; Fri, 23 Nov 2007 23:32:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references:face:date:in-reply-to:message-id:user-agent:mime-version:content-type:from; bh=AXJDUdWQJsKi52aETIk2crMJv3jqkNcxutQUFNqfIPY=; b=BdI9k3ndpwQDCqNjrOlP25h1/If2P0OkQP2GaCPPfpK7zkUM1qxpuxUzuH+NNYFGRwO+wPOs2oN0Vg+nbzuln9sodbss9EO9WB54DFe33eLnNoCvWr9gVcW+a+GS73d5Pqi/heE+NWdNjkCSeaGlFmW14gvjft8Wtt3DhbBTP2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:to:cc:subject:references:face:date:in-reply-to:message-id:user-agent:mime-version:content-type:from; b=s8SIOM8RfUaVKDhKz287xKZr/PZDkfnxqIt4iQmqd7JOKj/ePy7QD9rrtc1As6Zxj3gH4cfsj+vxr1svj8db/CZ/wQCPfSAqD5UszGNfx/VX9uCSl774uMRUOJA46OojVY0PNcms6L5nC9aRRd7npjUnRuNRM74kpP9yhakOwYo= Original-Received: by 10.86.25.17 with SMTP id 17mr229831fgy.1195889536583; Fri, 23 Nov 2007 23:32:16 -0800 (PST) Original-Received: from thievol.homelinux.org ( [79.81.61.95]) by mx.google.com with ESMTPS id 4sm1666866fgg.2007.11.23.23.32.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2007 23:32:15 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAAD/eiojJC8HDgL9 q6CxcyAADQCPoKCbKDEHHjqGqpmkAAACZklEQVQ4jWVTwW7TQBAdZSSL61Jb8jFyVSXcth5inKPF RvSImwTtMSKSPwCoLG44xtKeyal/y9sN1G47x3meN7PvPdNZEzVNQzwTYhGtz8I6EnSJtUQHotni nWYSNA5ciFARkIK0Xvx8LBpmKRppDgyaI+YifLduf54bmpPkgQj0fp6Z1237XTTLyphtoanR4ktr Wv9p27kw7+xQ/WpI+LcxqcYOzhbtJ4x0tjNb0KxMUsdXOc7K2odsHvHK1upOSGLrXFdhZIZR84W4 BJBoKpVDxR9FBvSrnjnfd0ppulW+YuN2CYDNFu8fag90vm8HZSq1aX/sLS50ygO+n4qAVrk26+pU S+c7AehzKfvBnrLM2fi+BNNbodtKpXgudtus/VamXeU/3TKVddpDbxCc1o/nslr6fjKn4AEkI1Gn PJOhwjal7kPrUhKn17LcVbIKq8di3LWssU+cu6Zp3cQVtOg11GYINOEaIE3v/WQ9HeAPldr30TEk Y1rvoYnNF3O+ZOZpiCFm0gPwZh9IRrayUm5nHj4TFxgRfgJm0HQ/mHsfDSyZ7C9NEENk6YTlcbzq pg6WbSHezsp6BIYLcHej3D7ejKKsrPeyU8kN+ICPK4KVXZdmYTIdFYHzKlVpfwgpSMYdy770KdgW pUf6iVgS2DbIl0JWJoAuA3ttKifRREjNF6BLeqHjFIi+eiCxIs/8gKpHHx343fAzLGqOiA5iLi+c wj+ZIwcswZBJ+Zin7jqwPANY8h1+h+00U6HPOsdV5opelrDXwvTRK2C2dC/S+e/cN9bV6vQawA+R 1Fa/7vtXIAb/c/MXBLaluuFkJS8AAAAASUVORK5CYII= In-Reply-To: <87tzncxqio.fsf@lion.rapttech.com.au> (Tim X.'s message of "Sat\, 24 Nov 2007 14\:37\:35 +1100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 24 Nov 2007 02:51:01 -0500 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:49460 Archived-At: Tim X writes: > chandan writes: > >> Hi, >> I am using emacs 22.1.1 on ubuntu 7.10. >> I would like to know if there is any way of associating external >> programs to known file types in "dired". For example, associating >> * audio files (ogg, mp3, ...) with xmms, >> * office files (odt, odp, ...) with openoffice, >> * ... > > There are many ways to do this. There are some packages (check the emacs > wiki at http://www.emacswiki.org) and dired-x has some facilities to > configure dired so that when you hit ! it will make a guess as to the > program you want to run on that file. There was a package posted to > g.e.sources and this group in the last week or so that implemented ways to > call external probrams, but I don't remember the name of it. > > The way I solved this was to use defadvice on view-file which looked at the > file extension of the file about to be viewed and if it was one that had a > recognised type, I would handle it in some particular way (convert to text, > render in w3m etc), otherwise, just view as normal. > > Tim Hi, i use extview.el, it's work fine. It read in a .mailcap file. -- A + Thierry