My goal is to use org-pdftools
as described in this blogpost. I started by trying to make pdf-tools
work with continuous scrolling, but I'm running into various problems. It is getting way complicated and would appreciate some help. For context, I'm on Mac and put most of my config in config.org
file and load it from init.el
.
- When I put
(pdf-tools-install)
inconfig.org
, Emacs uses DocView when I open a pdf file. I need to runM-x pdf-tools-install
everytime I open Emacs. When I put(pdf-tools-install)
ininit.el
, this problem is gone. Why is this happening? - To enable continuous scroll with
pdf-tools
, I'd like to use pdf-continuous-scroll-mode.el or image-roll.el. I've not been able to get them to work. This SE post has a suggestion on how to enable this fix. It didn't work for me. What is the correct way to do this? Are there better ways to enable continuous-scroll with pdf-tools? - While working on above, I came to know about quelpa and tried installing it following the official instructions as
M-x package-install RET quelpa RET
but Emacs can't find this package. I've added the third method from the instructions toinit.el
but I have no idea if it is working (no errors at startup though). I get an error if I add this line(require 'quelpa-use-package)
, the error is:
Warning (initialization): An error occurred while loading ‘.emacs.d/init.el’:
File is missing: Cannot open load file, No such file or directory, quelpa-use-package
I don't get what's going on. What is the correct way to use quelpa, install the continuous-scroll feature, and start using pdf-tools?
M-x package-refresh-contents
). After that, it should be easy to install Quelpa by following its installation instructions (b.t.w. from Emacs 29 we can install packages directly from github). Finally, I would recommend you to tryimage-roll
first. Note that it only works with the pdf-roll branch of my pdf-tools fork. – dalanicolai Apr 23 '23 at 10:06M-x package-install RET quelpa RET
afterM-x package-refresh-contents
. I have added the snipped to init.el instead but don't know if it installed quelpa (third option in the link you and I posted on quelpa installation). Finally, what is the way to enable smooth scrolling if I want to use originalpdf-tools
? Ispdf-continuous-scroll-mode.el
an option in that case? – vpk Apr 23 '23 at 15:21M-x package-list-packages
buffer? If no, do you see any Melpa package listed at all (probably no). If not, then somehow you did not successfully add the Melpa archive. Indeed,pdf-continuous-scroll-mode.el
is easier to use and install. You can simply use it with the 'default' pdf-tools. Don't follow the installation instructions (there will be no more updates), simply download/clone the file and load it manually. Then doM-x pdf-continuous-scroll-mode
from a pdf-tools buffer to activate it. Beware that this is a simple (but efficient) 2 buffer hack. – dalanicolai Apr 23 '23 at 15:35M-x package-list-packages
buffer. What melpa packages should I search for? I believe I have installed some org packages from Melpa, but that was a while ago so not sure. Thanks for your work with continuous scroll! Do you know anything better that works with defaultpdf-tools
? – vpk Apr 23 '23 at 17:54quelpa
is now installed. I also downloaded your.el
file and have this in my config(load "~/.emacs.d/pdf-continuous-scroll-mode.el")
but I can't doM-x pdf-continuous-scroll-mode
. Could you please help with this? – vpk Apr 24 '23 at 17:11pdf-continuous-scroll-mode
again now, and I have found that in its latest version I have removed the mode itself, i.e. you can simply usepdf-continuous-scroll-forward/backward
(C-n/p
) directly, and you can just use it with the standard pdf-tools package. Note, that although the scrolling works fine,pdf-continuous-scroll-mode
does not work flawlessly in multiple buffers. – dalanicolai Apr 27 '23 at 11:27