[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Set emacs as pdf viewer?
From: |
Robert Thorpe |
Subject: |
Re: Set emacs as pdf viewer? |
Date: |
Fri, 06 Feb 2015 03:05:57 +0000 |
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