From: Colin Baxter <m43cap@yandex.com>
To: kjonca@poczta.onet.pl (Kamil Jońca)
Cc: , help-gnu-emacs@gnu.org
Subject: Re: pdf viewer
Date: Sat, 06 Oct 2018 14:22:18 +0100 [thread overview]
Message-ID: <87h8hzfbw5.fsf@yandex.com> (raw)
In-Reply-To: <87va6fjpj3.fsf@alfa.kjonca> ("Kamil \=\?utf-8\?Q\?Jo\=C5\=84ca\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 06 Oct 2018 13:14:08 +0200")
>>>>> Kamil Jońca <kjonca@poczta.onet.pl> writes:
> "Garreau, Alexandre" <galex-713@galex-713.eu> writes:
>> On 2018-10-06 at 12:39, Teemu Likonen wrote:
>>> 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"))))
>>
>> My emacs uses its internal viewer doc view, and yet I see this in
>> my predefined (I didn’t touch it myself) mailcap-user-mime-data:
>>
>> #+BEGIN_SRC elisp ("pdf" (viewer . "okular '%s'") (type
>> . "application/pdf") (test "test" "\"$DISPLAY\"" "!=" "\"\"")
>> ("nametemplate" . "%s.pdf")) #+END_SRC
>>
> Are you sure you speak about mailcap-user-mime-data, not
> mailcap-mime-data?
> I have huge mailcap-mime-data, but mailcap-user-mime-data was
> empty/undefined. KJ
> -- http://stopstopnop.pl/stop_stopnop.pl_o_nas.html A lie in time
> saves nine.
You can also use a hook. This works for me:
(add-hook 'org-mode-hook
'(lambda ()
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . "xpdf %s"))))
Best wishes,
Colin Baxter
m43cap@yandex.com
next prev parent reply other threads:[~2018-10-06 13:22 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 [this message]
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
[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=87h8hzfbw5.fsf@yandex.com \
--to=m43cap@yandex.com \
--cc=help-gnu-emacs@gnu.org \
--cc=kjonca@poczta.onet.pl \
/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.