-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathontop-pdftools.el
38 lines (30 loc) · 1.13 KB
/
ontop-pdftools.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; ontop-pdftools.el --- Sophisticated PDF reader -*- lexical-binding: t; -*-
;; This file is part of Emacs ONTOP
;; https://github.com/monkeyjunglejuice/emacs.ontop
;;; Commentary:
;; You can also use this file/configuration independently from Emacs ONTOP
;; Load it from anywhere via `(load-file "/path/to/ontop-pdftools.el")'.
;;; Code:
;; ____________________________________________________________________________
;;; USE-PACKAGE
;; <https://github.com/jwiegley/use-package>
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package nil))
(eval-when-compile
(require 'use-package))
;; ____________________________________________________________________________
;;; PDF-TOOLS
;; <https://github.com/vedang/pdf-tools/>
;; Compiles binary automatically at the first run and after upgrades
;; Sophisticated PDF viewer
(use-package pdf-tools
:ensure t
:magic
("%PDF" . pdf-view-mode)
:config
;; Compile without asking
(pdf-tools-install :no-query))
;; ____________________________________________________________________________
(provide 'ontop-pdftools)
;;; ontop-pdftools.el ends here