diff options
author | David Robillard <d@drobilla.net> | 2016-05-02 13:14:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-05-02 13:14:25 -0400 |
commit | 0be0e9bf1ba20690b634d474762f8cd5062e7e3d (patch) | |
tree | b73638b610e15033aa9b350256751ad61b3d600d | |
parent | e8b736b1ac85a08a1c60e2fa3fe9cf643e3a854a (diff) | |
download | dotfiles-0be0e9bf1ba20690b634d474762f8cd5062e7e3d.tar.gz dotfiles-0be0e9bf1ba20690b634d474762f8cd5062e7e3d.tar.bz2 dotfiles-0be0e9bf1ba20690b634d474762f8cd5062e7e3d.zip |
Use auto-reverting pdftools by default
-rw-r--r-- | emacs.d/init.el | 8 |
1 files changed, 8 insertions, 0 deletions
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 |