Last active
July 22, 2018 17:37
-
-
Save yiufung/196c69379fc8bf7a55b0ac97489c6cda to your computer and use it in GitHub Desktop.
Emacs: Use pdf-tools under Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; m-parashar has released pre-compiled pdf-tools for Windows at | |
;; https://github.com/m-parashar/emax64/releases/download/20180529/pdf-tools-20180428.827.7z | |
;; Extract it and change :load-path accordingly. | |
(use-package pdf-tools | |
;; Dependency of pdf-tools | |
:ensure tablist | |
:load-path (lambda () (expand-file-name "bin/pdf-tools-20180428.827/" | |
my-emacs-conf-directory)) | |
;; Tell Emacs to autoload pdf-tools | |
:init (load "pdf-tools-autoloads" nil t) | |
;; Swiper don't work well in pdf-tools | |
:bind (:map pdf-view-mode-map | |
("C-s" . 'isearch-forward) | |
("C-r" . 'isearch-backward) | |
) | |
:magic ("%PDF" . pdf-view-mode) | |
:config | |
(setq pdf-view-display-size 'fit-height) | |
(setq pdf-annot-activate-annotation t) | |
(pdf-tools-install) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment