[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired - open files external

From: Igor Sosa Mayor
Subject: Re: Dired - open files external
Date: Tue, 13 May 2014 15:27:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Martin <> writes:

> Hi there,
> Dired works fine here, but I cannot figure out how to open the filex
> external.
> Special docx and pdf should be opened external, pdf not allways but
> mostly.  How can I do that?  (For docx - it does not make much sense for
> me to see the files inside, but open it with libreoffice would be quite
> good.)

you could do this the following:

--8<---------------cut here---------------start------------->8---
(require 'dired+)

(setq dired-guess-shell-alist-user
        '(("\\.xls\\'" "soffice")
          ("\\.ods\\'" "soffice")
          ("\\.odt\\'" "soffice")
          ("\\.pdf\\'" "zathura")))
--8<---------------cut here---------------end--------------->8---

and then press ! on the file. 

:: Igor Sosa Mayor     :: ::
:: GnuPG: 0x1C1E2890   ::      ::
:: jabberid: rogorido  ::                            ::

reply via email to

[Prev in Thread] Current Thread [Next in Thread]