emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: Link Associations in Linux
Date: Thu, 04 Sep 2008 12:09:06 +0200	[thread overview]
Message-ID: <87sksgkyt9.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 20080904094102.B893F320071@mail.dagertech.net

"David A. Gershman" <dagershman_dgt@dagertech.net> writes:

Hi David,

> In the org.el file, I found "org-file-apps-defaults-gnu", made my
> adjustments { ("pdf" . "xpdf %s") } and away I went!  However, is
> there a way I can modify/add to the "org-file-apps-defaults-gnu" via
> my .emacs file?

Sure, lots of ways.  For example

  (add-to-list org-file-apps '("pdf" . "xpdf %s"))

But the since the default value of org-file-apps-defaults-gnu is

,----[ C-h v org-file-apps-defaults-gnu RET ]
| org-file-apps-defaults-gnu's value is 
| ((remote . emacs)
|  (t . mailcap))
`----

It would be even better to adjust (or create) your ~/.mailcap.  Then not
only org but most apps will honor this association.  For example I have
this

,----[ ~/.mailcap ]
| application/pdf; okular '%s'
`----

to open pdfs with okular.

Hope that helps,
Tassilo
-- 
No person,  no idea, and no  religion deserves to be  illegal to insult,
not even the Church of Emacs. (Richard M. Stallman)

  parent reply	other threads:[~2008-09-04 10:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04  9:41 Link Associations in Linux David A. Gershman
2008-09-04  9:50 ` Vyazovoi Pavel
2008-09-04 10:09 ` Tassilo Horn [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-09-04  9:23 David A. Gershman

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=87sksgkyt9.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-orgmode@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 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).