[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] open file link in dired?
From: |
Haider Rizvi |
Subject: |
Re: [O] open file link in dired? |
Date: |
Thu, 11 Dec 2014 15:22:06 -0500 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (darwin) |
Alan Schmitt <address@hidden> 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
- Re: [O] open file link in dired?, Steven Arntson, 2014/12/09
- Re: [O] open file link in dired?, Alan Schmitt, 2014/12/10
- Re: [O] open file link in dired?, Marcin Borkowski, 2014/12/10
- Re: [O] open file link in dired?, Alan Schmitt, 2014/12/10
- Re: [O] open file link in dired?, Steven Arntson, 2014/12/10
- Re: [O] open file link in dired?, Alan Schmitt, 2014/12/11
- Re: [O] open file link in dired?,
Haider Rizvi <=
- Re: [O] open file link in dired?, Alan Schmitt, 2014/12/12
- Re: [O] open file link in dired?, Haider Rizvi, 2014/12/12