* Set emacs as pdf viewer?
@ 2015-02-05 20:46 Tory S. Anderson
0 siblings, 0 replies; 3+ messages in thread
From: Tory S. Anderson @ 2015-02-05 20:46 UTC (permalink / raw)
To: Emacs Help List
It feels silly to ask this but I've been using Okular to view all my pdfs for so long that I don't know how to switch to using emacs (now that we have the excellent PDF-Tools package), in particular with Auctex. I use the following to allow okular, but without it the PDF just opens in some hideous no-name application.
(setq browse-pdf-generic-program (executable-find "okular"))
How do I make emacs my default PDF viewer for Auctex?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set emacs as pdf viewer?
[not found] <mailman.19358.1423169207.1147.help-gnu-emacs@gnu.org>
@ 2015-02-06 1:50 ` Rusi
2015-02-06 3:05 ` Robert Thorpe
0 siblings, 1 reply; 3+ messages in thread
From: Rusi @ 2015-02-06 1:50 UTC (permalink / raw)
To: help-gnu-emacs
On Friday, February 6, 2015 at 2:16:50 AM UTC+5:30, Tory S. Anderson wrote:
> It feels silly to ask this but I've been using Okular to view all my pdfs for so long that I don't know how to switch to using emacs (now that we have the excellent PDF-Tools package), in particular with Auctex. I use the following to allow okular, but without it the PDF just opens in some hideous no-name application.
>
> (setq browse-pdf-generic-program (executable-find "okular"))
>
> How do I make emacs my default PDF viewer for Auctex?
As it happens I just discovered this yesterday, though it will depend on desktop
(kde/gnome/ etc) I use xfce.
For a long time for certain types of files (certain mime types), instead of starting some editor (let alone emacs) it would start wine and call notepad!
The official app for that is xdg-open -- which I found completely impenetrable.
Yesterday I found that xfce uses exo-open which is linked to xfce4-mime-settings
Your desktop will have something similar
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set emacs as pdf viewer?
2015-02-06 1:50 ` Set emacs as pdf viewer? Rusi
@ 2015-02-06 3:05 ` Robert Thorpe
0 siblings, 0 replies; 3+ messages in thread
From: Robert Thorpe @ 2015-02-06 3:05 UTC (permalink / raw)
To: Rusi; +Cc: help-gnu-emacs
Rusi <rustompmody@gmail.com> writes:
...
> As it happens I just discovered this yesterday, though it will depend on desktop
> (kde/gnome/ etc) I use xfce.
>
> For a long time for certain types of files (certain mime types), instead of starting some editor (let alone emacs) it would start wine and call notepad!
>
> The official app for that is xdg-open -- which I found completely impenetrable.
> Yesterday I found that xfce uses exo-open which is linked to xfce4-mime-settings
>
> Your desktop will have something similar
Emacs has it's own system for things like this though,
"auto-mode-alist" and "interpreter-mode-alist". These days Emacs will
open a PDF in doc-view mode by default. If this isn't happening in
Auctex then that probably means that an Auctex variable must be set. Or
it could mean that browse-pdf-generic-program should not be set.
BR,
Robert Thorpe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-06 3:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.19358.1423169207.1147.help-gnu-emacs@gnu.org>
2015-02-06 1:50 ` Set emacs as pdf viewer? Rusi
2015-02-06 3:05 ` Robert Thorpe
2015-02-05 20:46 Tory S. Anderson
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).