[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: |
Fri, 28 Apr 2023 07:55:50 +0800 |
On Fri, Apr 28, 2023 at 2:37 AM Tassilo Horn <tsdh@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> >> >> (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)
> >> >> )
> >> >>
> >> >
> >> > Indeed this does notinstall anything. use-package is about loading,
> >> > not installing. Use package.el or straight.el (or any other package
> >> > manager) for installing.
> >>
> >> Well, you can add a :ensure t clause to the use-package recipe and it
> >> will tell package.el to install the package.
> >
> > It seems that this is not true.
>
> I can assure you that I have
>
> (use-package pdf-tools
> :ensure t
> :init
> (pdf-tools-install))
>
> in my user-init-file, and that with this and just this, PDFs are opened
> automatically using its `pdf-view-mode' (instead of `doc-view-mode').
>
> When I do `M-x package-delete RET pdf-tools RET' and restart emacs, it
> will automatically install it again which is the task of :ensure, see
> (info "(use-package) Install package"). After installing the package
> automatically, I'm also asked
>
> Need to (re)build the epdfinfo program, do it now ? (y or n) y
>
> which is then built and the output shown in a *compilation* buffer.
I confirm that the above configuration can solve the problem.
> Bye,
> Tassilo
Best,
Zhao
- use pdf-tools in Emacs., Hongyi Zhao, 2023/04/25
- Re: use pdf-tools in Emacs., Rudolf Schlatte, 2023/04/25
- Re: use pdf-tools in Emacs., Hongyi Zhao, 2023/04/25
- Re: use pdf-tools in Emacs., stefan-husmann, 2023/04/27
- Re: use pdf-tools in Emacs., Tassilo Horn, 2023/04/27
- Re: use pdf-tools in Emacs., Hongyi Zhao, 2023/04/27
- Re: use pdf-tools in Emacs., Ruijie Yu, 2023/04/27
- Re: use pdf-tools in Emacs., Hongyi Zhao, 2023/04/27
- Re: use pdf-tools in Emacs., Tassilo Horn, 2023/04/27
- Re: use pdf-tools in Emacs.,
Hongyi Zhao <=
- Re: use pdf-tools in Emacs., Tassilo Horn, 2023/04/28
- Re: use pdf-tools in Emacs., christian de larrinaga, 2023/04/28
- Re: use pdf-tools in Emacs., Hongyi Zhao, 2023/04/28
- Re: use pdf-tools in Emacs., Tassilo Horn, 2023/04/28
- Re: use pdf-tools in Emacs., Hongyi Zhao, 2023/04/28
- Re: use pdf-tools in Emacs., Tassilo Horn, 2023/04/28
- Re: use pdf-tools in Emacs., Hongyi Zhao, 2023/04/28
- How to have a frame dedicated to buffers of a certain kind? (was: use pdf-tools in Emacs.), Tassilo Horn, 2023/04/29
- Re: How to have a frame dedicated to buffers of a certain kind? (was: use pdf-tools in Emacs.), Hongyi Zhao, 2023/04/29
- Re: How to have a frame dedicated to buffers of a certain kind? (was: use pdf-tools in Emacs.), Tassilo Horn, 2023/04/29