[emacs-w3m:13070] Re: How to use pdf-tools (pdf-view-mode)

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.w3m
Organization Emacsen advocacy group
Message-ID <[email protected]>
In [emacs-w3m:13069]
On Tue, 04 Dec 2018 04:23:11 +0000, Andrés Ramírez wrote:
> But customizing "w3m-content-type-alist" does not seem an easy tasks.

emacs-w3m now reads the ~/.mailcap file (if any) and gives
priority to the settings in it.  So, if you want to use ACROREAD
to view pdf files, add this snippet to the ~/.mailcap file:

application/pdf; ACROREAD %s

Note that you need to use the most recent emacs-w3m in order to
use this feature.

When having edited the ~/.mailcap file, an easy way to reflect
the edit to `w3m-content-type-alist' would be to restart Emacs.
Otherwise, do:

M-x mailcap-parse-mailcaps RET
Eval: (makunbound 'w3m-content-type-alist)
M-x load-library RET w3m RET

Regards,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.