From 2dbff50721d88e5f7335796485ea0d7a39ea5a40 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 12 May 2021 11:04:55 -0400 Subject: [PATCH] Add pdf-tools --- emacs/.emacs.d/config/init-pdf.el | 9 +++++++++ emacs/.emacs.d/init.el | 1 + 2 files changed, 10 insertions(+) create mode 100644 emacs/.emacs.d/config/init-pdf.el diff --git a/emacs/.emacs.d/config/init-pdf.el b/emacs/.emacs.d/config/init-pdf.el new file mode 100644 index 0000000..cb6e0d9 --- /dev/null +++ b/emacs/.emacs.d/config/init-pdf.el @@ -0,0 +1,9 @@ +;; -*- lexical-binding: t; -*- + +(use-package pdf-tools + :mode (("\\.pdf\\'" . pdf-view-mode)) + :config + (pdf-tools-install) + (evil-collection-pdf-setup)) + +(provide 'init-pdf) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 403a6d6..67083d1 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -104,6 +104,7 @@ (require 'init-email) (require 'init-kubernetes) (require 'init-epub) +(require 'init-pdf) (require 'init-homebrew) (require 'init-elfeed) (require 'init-1pass)