[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 14:58:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Martin <kleinerdrache@gmx.at> 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.)
>
> Thanks,
> Martin
>
>
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 :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::