diff options
author | jao <jao@gnu.org> | 2024-03-13 02:50:34 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2024-03-13 02:50:34 +0000 |
commit | e7b8e2104adeaa7bc821abafcaa978f56583962d (patch) | |
tree | 84c9b8128ff89fbce25a379e2f9951541751a54f /attic/elisp/misc.el | |
parent | f0701cdcae5b13dacea8ab5af2a0147110eca654 (diff) | |
download | elibs-e7b8e2104adeaa7bc821abafcaa978f56583962d.tar.gz elibs-e7b8e2104adeaa7bc821abafcaa978f56583962d.tar.bz2 |
unused pdf-tools, {jao-,}docview good enough!
Diffstat (limited to 'attic/elisp/misc.el')
-rw-r--r-- | attic/elisp/misc.el | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el index 06a46b9..4c398fe 100644 --- a/attic/elisp/misc.el +++ b/attic/elisp/misc.el @@ -813,12 +813,34 @@ :diminish ((disable-mouse-global-mode . ""))) (global-disable-mouse-mode) -;;;; tmr +;;; tmr (use-package tmr :ensure t :init (setq tmr-sound-file "/usr/share/sounds/freedesktop/stereo/message.oga")) +;;; 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)))) ;;; snippets (defun jao-org-notes-open-tags () "Search for a note file, matching all tags with completion." |