all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Igor Sosa Mayor <joseleopoldo1792@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Dired - open files external
Date: Tue, 13 May 2014 14:58:19 +0200	[thread overview]
Message-ID: <87iop996ok.fsf@pedroche.home> (raw)
In-Reply-To: 87fvke86q8.fsf@gmx.at

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  ::                            ::




  parent reply	other threads:[~2014-05-13 12:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13  7:42 Dired - open files external Martin
2014-05-13 12:49 ` Eric Abrahamsen
2014-05-13 13:13   ` Michael Heerdegen
2014-05-14  3:42     ` Eric Abrahamsen
2014-05-14 11:38       ` Michael Heerdegen
2014-05-13 12:58 ` Igor Sosa Mayor [this message]
2014-05-13 13:27 ` Igor Sosa Mayor
2014-05-13 13:59 ` Drew Adams

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

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

  git send-email \
    --in-reply-to=87iop996ok.fsf@pedroche.home \
    --to=joseleopoldo1792@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.