diff options
author | David Robillard <d@drobilla.net> | 2017-04-12 21:04:42 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-04-12 21:09:22 +0200 |
commit | ff330189a085723a66156d25fad747102db23beb (patch) | |
tree | a76195c032fb9e4be773fed98809035a1f69008f | |
parent | 3f7c59b212421ea570f8e4e7c7455d30b0dfd973 (diff) | |
download | dotfiles-ff330189a085723a66156d25fad747102db23beb.tar.gz dotfiles-ff330189a085723a66156d25fad747102db23beb.tar.bz2 dotfiles-ff330189a085723a66156d25fad747102db23beb.zip |
Fix flashing PDF documents
-rw-r--r-- | emacs.d/init.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index e482ba2..4586108 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -360,8 +360,12 @@ (pdf-tools-install) -(add-hook 'doc-view-mode-hook 'auto-revert-mode) -(add-hook 'pdf-view-mode-hook 'auto-revert-mode) +(defun my-doc-view-hook () + (auto-revert-mode) + (blink-cursor-mode -1)) + +(add-hook 'doc-view-mode-hook 'my-doc-view-hook) +(add-hook 'pdf-view-mode-hook 'my-doc-view-hook) (spaceline-define-segment line-column "The current line and column numbers." |