help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: use pdf-tools in Emacs.


From: Hongyi Zhao
Subject: Re: use pdf-tools in Emacs.
Date: Wed, 26 Apr 2023 10:01:24 +0800

On Tue, Apr 25, 2023 at 11:10 PM Rudolf Schlatte <rudi@constantly.at> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > I try to use pdf-tools [1] in Emacs, but meet the following problem:
>
> Have you tried M-x pdf-tools-install RET ?

Yes. This way works.

> That command compiles the
> helper program that pdf-tools needs to display pdfs.  Also see the
> documentation of `pdf-loader-install`, which is another function
> provided by pdf-tools that I think is meant to be added to the user's
> init.el file.

In fact, I already have the following configuration in my init.el
file, but it doesn't seem to automatically compile and install
pdf-tools:

(use-package pdf-tools
  ;;https://github.com/jwiegley/use-package#magic-handlers
  :magic ("%PDF" . pdf-view-mode)
  :config
  (pdf-tools-install :no-query)
  ;; C-h o pdf-loader-install RET
  ;; This function acts as a replacement for ‘pdf-tools-install’ and
  ;; makes Emacs load and use PDF Tools as soon as a PDF file is
  ;; opened, but not sooner.
  ;;(pdf-loader-install)
  )

Regards,
Zhao



reply via email to

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