From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: pdf viewer
Date: Sat, 6 Oct 2018 12:52:41 +0200 [thread overview]
Message-ID: <20181006105241.GB19135@tuxteam.de> (raw)
In-Reply-To: <874ldzl7wu.fsf@alfa.kjonca>
[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]
On Sat, Oct 06, 2018 at 11:51:45AM +0200, Kamil Jońca wrote:
> Teemu Likonen <tlikonen@iki.fi> writes:
>
> > Kamil Jońca [2018-10-06 11:02:54+02] wrote:
> >
> >> For some time emacs view pdf files with its internal viewer. But I
> >> want to keep old behavior - open them with xpdf/evince How can I do
> >> it?
> >
> > You can use mailcap-user-mime-data variable to override the (generated)
> > defaults in mailcap-mime-data:
> >
> > (setq mailcap-user-mime-data
> > '(((type . "application/pdf")
> > (viewer . "evince %s"))))
>
> It does not work. Still pdf is open by internal viewer :(
> KJ
Is this from org-mode? If yes, this snippet works for me:
(setq org-file-apps
(cons
'("\\.pdf\\(?:::\\([0-9]*\\)\\)\\'" . "xpdf %s %1")
(assoc-delete-all "\\.pdf\\'" org-file-apps)))
Otherwise you might want to have a look at doc-view-mode: I think
this is the one responsible for displaying the pdfs whithin Emacs.
Cheers
-- tomás
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2018-10-06 10:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-06 9:02 pdf viewer Kamil Jońca
2018-10-06 9:39 ` Teemu Likonen
2018-10-06 10:53 ` Garreau, Alexandre
[not found] ` <mailman.1753.1538823923.1284.help-gnu-emacs@gnu.org>
2018-10-06 11:14 ` Kamil Jońca
2018-10-06 11:29 ` Garreau, Alexandre
2018-10-06 13:22 ` Colin Baxter
2018-10-07 0:12 ` Ben Bacarisse
2018-10-07 12:11 ` Michael Heerdegen
[not found] ` <mailman.1750.1538818772.1284.help-gnu-emacs@gnu.org>
2018-10-06 9:51 ` Kamil Jońca
2018-10-06 10:52 ` tomas [this message]
[not found] ` <mailman.1754.1538823926.1284.help-gnu-emacs@gnu.org>
2018-10-06 11:12 ` Kamil Jońca
2018-10-06 14:57 ` Marcin Borkowski
[not found] ` <mailman.1762.1538837917.1284.help-gnu-emacs@gnu.org>
2018-10-06 16:26 ` Kamil Jońca
2018-10-06 17:38 ` Marcin Borkowski
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181006105241.GB19135@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@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 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.