[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pdf viewer

From: Garreau, Alexandre
Subject: Re: pdf viewer
Date: Sat, 06 Oct 2018 12:53:13 +0200
User-agent: Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu)

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
   (viewer . "okular '%s'")
   (type . "application/pdf")
   (test "test" "\"$DISPLAY\"" "!=" "\"\"")
   ("nametemplate" . "%s.pdf"))

Also mine is huge, wouldn’t what you proposed erase it all? Wouldn’t
`add-to-list' be more appropriated?

#+BEGIN_SRC elisp
  (add-to-list 'mailcap-user-mime-data
               '((type . "application/pdf")
                 (viewer . "evince %s")))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]