summaryrefslogtreecommitdiffhomepage
path: root/attic/elisp
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-23 01:00:24 +0100
committerjao <jao@gnu.org>2022-09-23 01:04:05 +0100
commitb8201184caa8034c671b98e1f3a599421315fdd4 (patch)
tree0f6a3a510437fb865c050944b0bec7810aa791a7 /attic/elisp
parent0db03a3d92fda3c0cf368826d0fe5a224ad688d0 (diff)
downloadelibs-b8201184caa8034c671b98e1f3a599421315fdd4.tar.gz
elibs-b8201184caa8034c671b98e1f3a599421315fdd4.tar.bz2
attic
Diffstat (limited to 'attic/elisp')
-rw-r--r--attic/elisp/misc.el24
1 files changed, 24 insertions, 0 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el
index 870bb37..2565637 100644
--- a/attic/elisp/misc.el
+++ b/attic/elisp/misc.el
@@ -319,6 +319,30 @@
(interactive)
(jao-notify "Volume" (format "%s%%" (jao-player-volume))))
+;;; pdf-tools
+(use-package pdf-tools
+ :ensure t
+ :demand t
+ :init
+ (add-hook 'after-init-hook
+ (lambda ()
+ (setq pdf-view-midnight-colors
+ (cons (frame-parameter nil 'foreground-color)
+ (frame-parameter nil 'background-color)))))
+
+ :hook ((pdf-view-mode . jao-doc-session-mark))
+
+ :config (pdf-tools-install)
+
+ :diminish ((pdf-view-midnight-minor-mode . ""))
+
+ :bind (:map pdf-view-mode-map
+ (("C-c C-d" . pdf-view-midnight-minor-mode)
+ ("j" . pdf-view-next-line-or-next-page)
+ ("J" . pdf-view-scroll-up-or-next-page)
+ ("k" . pdf-view-previous-line-or-previous-page)
+ ("K" . pdf-view-scroll-down-or-previous-page))))
+
;;; outline mode for notmuch tree view
(defun jao-notmuch-tree--msg-prefix (msg)