emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Haider Rizvi <harizvi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: open file link in dired?
Date: Thu, 11 Dec 2014 15:22:06 -0500	[thread overview]
Message-ID: <m14mt29btd.fsf@thinkhr.torolab.ibm.com> (raw)
In-Reply-To: m2ppbqzlhh.fsf@charm-wifi.irisa.fr

Alan Schmitt <alan.schmitt@polytechnique.org> 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

  reply	other threads:[~2014-12-11 20:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-04 14:36 open file link in dired? Alan Schmitt
2013-01-04 15:55 ` Bastien
2013-01-04 16:12   ` Alan Schmitt
2013-01-04 16:33     ` Bastien
2014-07-28  7:09       ` Alan Schmitt
2014-07-28 13:57         ` Bastien
2014-12-10  3:05         ` Steven Arntson
2014-12-10  7:48           ` Alan Schmitt
2014-12-10  9:51             ` Marcin Borkowski
2014-12-10 10:25               ` Alan Schmitt
2014-12-10 19:07                 ` Steven Arntson
2014-12-11  7:36                   ` Alan Schmitt
2014-12-11 20:22                     ` Haider Rizvi [this message]
2014-12-12  8:02                       ` Alan Schmitt
2014-12-12 15:22                         ` Haider Rizvi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m14mt29btd.fsf@thinkhr.torolab.ibm.com \
    --to=harizvi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).