From: Colin Baxter <m43cap@yandex.com>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-file-apps settings?
Date: Fri, 16 Sep 2016 09:16:16 +0100 [thread overview]
Message-ID: <87twdgdzu7.fsf@yandex.com> (raw)
In-Reply-To: <CAN_Dec-dcufy8CXrQk=xn35fY4_pa_-0ogtRFyHqqWGLoTPeEw@mail.gmail.com> (Matt Price's message of "Thu, 15 Sep 2016 09:27:02 -0400")
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.
next prev parent reply other threads:[~2016-09-16 8:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 13:27 org-file-apps settings? Matt Price
2016-09-15 17:18 ` Adam Porter
2016-09-16 8:16 ` Colin Baxter [this message]
2016-09-16 11:46 ` Matt Price
2016-09-17 15:30 ` Adam Porter
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twdgdzu7.fsf@yandex.com \
--to=m43cap@yandex.com \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).