* Link Associations in Linux
@ 2008-09-04 9:23 David A. Gershman
0 siblings, 0 replies; 4+ messages in thread
From: David A. Gershman @ 2008-09-04 9:23 UTC (permalink / raw)
To: orgmode
Hello,
Using Orgmode under Windows I can link to a PDF file and the Windows OS
will use the .pdf extension to launch the associated viewer application.
It seems I don't have that luxury under Linux a the moment. I have a
feeling there is a way to do it. Ideas?
i.e. I would like a link:
[[file:info.pdf][Information]]
Under Windows, info.pdf is associated with an app. Under linux, I get
nothing. (Note: Using XFCE4 as my WM and Zenwalk as the distro)
(or is this a non-orgmode question?)
Thanks.
---------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Link Associations in Linux
@ 2008-09-04 9:41 David A. Gershman
2008-09-04 9:50 ` Vyazovoi Pavel
2008-09-04 10:09 ` Tassilo Horn
0 siblings, 2 replies; 4+ messages in thread
From: David A. Gershman @ 2008-09-04 9:41 UTC (permalink / raw)
To: orgmode
I love answering my own questions. However, my current answer was found
in the form of hacking the org.el file. Not something I really want to
do. So...
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?
Thanks again.
> Hello,
>
> Using Orgmode under Windows I can link to a PDF file and the Windows OS
> will use the .pdf extension to launch the associated viewer application.
> It seems I don't have that luxury under Linux a the moment. I have a
> feeling there is a way to do it. Ideas?
>
> i.e. I would like a link:
>
> [[file:info.pdf][Information]]
>
> Under Windows, info.pdf is associated with an app. Under linux, I get
> nothing. (Note: Using XFCE4 as my WM and Zenwalk as the distro)
>
> (or is this a non-orgmode question?)
>
> Thanks.
>
>
> ---------------
> David A. Gershman
> gershman@dagertech.net
> http://dagertech.net/gershman/
> "It's all about the path!" --d. gershman
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
---------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Link Associations in Linux
2008-09-04 9:41 David A. Gershman
@ 2008-09-04 9:50 ` Vyazovoi Pavel
2008-09-04 10:09 ` Tassilo Horn
1 sibling, 0 replies; 4+ messages in thread
From: Vyazovoi Pavel @ 2008-09-04 9:50 UTC (permalink / raw)
To: orgmode
Just add constant definition like in org.el to your dotfile (emacs config).
At Thu, 4 Sep 2008 02:41:02 -0700 (PDT),
David A Gershman wrote:
>
> I love answering my own questions. However, my current answer was found
> in the form of hacking the org.el file. Not something I really want to
> do. So...
>
> 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?
>
> Thanks again.
>
> > Hello,
> >
> > Using Orgmode under Windows I can link to a PDF file and the Windows OS
> > will use the .pdf extension to launch the associated viewer application.
> > It seems I don't have that luxury under Linux a the moment. I have a
> > feeling there is a way to do it. Ideas?
> >
> > i.e. I would like a link:
> >
> > [[file:info.pdf][Information]]
> >
> > Under Windows, info.pdf is associated with an app. Under linux, I get
> > nothing. (Note: Using XFCE4 as my WM and Zenwalk as the distro)
> >
> > (or is this a non-orgmode question?)
> >
> > Thanks.
> >
> >
> > ---------------
> > David A. Gershman
> > gershman@dagertech.net
> > http://dagertech.net/gershman/
> > "It's all about the path!" --d. gershman
> >
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Remember: use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
> ---------------
> David A. Gershman
> gershman@dagertech.net
> http://dagertech.net/gershman/
> "It's all about the path!" --d. gershman
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Link Associations in Linux
2008-09-04 9:41 David A. Gershman
2008-09-04 9:50 ` Vyazovoi Pavel
@ 2008-09-04 10:09 ` Tassilo Horn
1 sibling, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2008-09-04 10:09 UTC (permalink / raw)
To: emacs-orgmode
"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)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-04 10:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-04 9:23 Link Associations in Linux David A. Gershman
-- strict thread matches above, loose matches on Subject: below --
2008-09-04 9:41 David A. Gershman
2008-09-04 9:50 ` Vyazovoi Pavel
2008-09-04 10:09 ` Tassilo Horn
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.