From 0be0e9bf1ba20690b634d474762f8cd5062e7e3d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 2 May 2016 13:14:25 -0400 Subject: Use auto-reverting pdftools by default --- emacs.d/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs.d/init.el b/emacs.d/init.el index 37aec28..573ef3d 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -48,6 +48,7 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. + '(auto-revert-interval 1) '(backup-by-copying t) '(backup-directory-alist (\` ((".*" \, temporary-file-directory)))) '(column-number-mode t) @@ -75,6 +76,7 @@ '(magit-diff-refine-hunk (quote all)) '(menu-bar-mode nil) '(powerline-default-separator (quote slant)) + '(pdf-view-midnight-colors (quote ("#C3D1D1" . "#141414"))) '(quack-pretty-lambda-p t) '(quack-run-scheme-always-prompts-p nil) '(scroll-bar-mode (quote right)) @@ -316,6 +318,11 @@ (setq tab-width 4) (setq indent-tabs-mode nil))) +;; PDF + +(add-hook 'doc-view-mode-hook 'auto-revert-mode) +(add-hook 'pdf-view-mode-hook 'auto-revert-mode) + ;; Associations (add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode)) @@ -324,6 +331,7 @@ (add-to-list 'auto-mode-alist '("\\.owl" . n3-mode)) (add-to-list 'auto-mode-alist '("\\.ll" . llvm-mode)) (add-to-list 'auto-mode-alist '("\\.md" . markdown-mode)) +(add-to-list 'auto-mode-alist '("\\.pdf" . pdf-view-mode)) ;;; IRC -- cgit v1.2.1