From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haider Rizvi Subject: Re: open file link in dired? Date: Thu, 11 Dec 2014 15:22:06 -0500 Message-ID: References: <87vcbdlz75.fsf@bzg.ath.cx> <87ehi0lxfy.fsf@bzg.ath.cx> <87a92w8as9.fsf@stevenarntson.com> <87bnnb97fa.fsf@wmi.amu.edu.pl> <87fvcn8gtg.fsf@stevenarntson.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzAFp-0003NP-IE for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 15:22:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzAFj-0002pn-HP for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 15:22:29 -0500 Received: from plane.gmane.org ([80.91.229.3]:37940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzAFj-0002pD-Ax for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 15:22:23 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XzAFh-0002vr-Vv for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 21:22:22 +0100 Received: from 135-23-221-144.cpe.pppoe.ca ([135.23.221.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Dec 2014 21:22:21 +0100 Received: from harizvi by 135-23-221-144.cpe.pppoe.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Dec 2014 21:22:21 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Alan Schmitt writes: > My main motivation for using this is that I have some code to > preview a file using Quicklook (I'm on OS X), and code to open a > file in an external app when in dired, so it's quite useful for > files that emacs cannot display: Alan, fyi if you don't know, openwith package does a pretty good job of opening with external apps. I've been using it on osx for a while. ;; openwith setup to help in find-file, dired, helm, etc. for common file types (use-package openwith :ensure :commands openwith-mode :config (progn (openwith-mode t) (setq openwith-associations (quote (("\\.pdf\\'" "open" (file)) ;; ("\\.svg\\'" "open" (file)) ("\\.\\(?:mpe?g\\|avi\\|wmv\\)\\'" "open -a vlc" (file)) ;; change .jpg to be able to show inline in .org mode ;; ("\\.\\(?:jp?g\\|png\\)\\'" "open" (file)) ("\\.ppt[x]*\\'" "open" (file)) ("\\.doc[x]*\\'" "open" (file)) ("\\.xls[x]*\\'" "open" (file)) ("\\.html\\'" "open" (file)) ("\\.vNotes.*\\'" "open" (file)) ;spotlight searches for Notes open these files ))))) Regards, -- Haider