[Top][All Lists]

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

Re: [O] org-file-apps settings?

From: Colin Baxter
Subject: Re: [O] org-file-apps settings?
Date: Fri, 16 Sep 2016 09:16:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

On Thu, Sep 15 2016, Matt Price wrote:

> hi Everyone,
> I have been through this a million times, but I never seem to remember, and 
> have a hard time finding
> the answer online or in my archives.
> On a Linux system, how should I set org-file-apps to allow org to open odt 
> files in libreoffice, html files
> in Firefox, and pdf files in evince (especially in export-and-open commands)?
> I have tried a couple of htings; this is what C-h v org-file-apps currently 
> says:
> Its value is ((remote . emacs) (system . mailcap) (t . mailcap))
> Original value was 
> ((auto-mode . emacs)
>  ("\\.mm\\'" . default)
>  ("\\.x?html?\\'" . default)
>  ("\\.pdf\\'" . default))
> There's no /etc/mailcap on my mahcine (?), and .mailcap reads:
> */*; xdg-open "%s"
> Running `xdg-open file.odt` from a terminal will open the file in 
> libreoffice, but exporting to odt and
> opening with C-c C-e o O opens the file in emacs.  What should I try next? 
> Thank you!
> m

Hi Matt,

I can't stand evince so I've explicitly modified the default for pdf
files to open xpdf. It could also be used to make open-office files use the
application you want:

(add-hook 'org-mode-hook
           '(lambda ()
            (delete '("\\.pdf\\'" . default) org-file-apps)
            (add-to-list 'org-file-apps '("\\.pdf\\'" . "xpdf %s"))))

Best Wishes.

reply via email to

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