summaryrefslogtreecommitdiffstats
path: root/emacs.d/init.el
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-04-12 21:04:42 +0200
committerDavid Robillard <d@drobilla.net>2017-04-12 21:09:22 +0200
commitff330189a085723a66156d25fad747102db23beb (patch)
treea76195c032fb9e4be773fed98809035a1f69008f /emacs.d/init.el
parent3f7c59b212421ea570f8e4e7c7455d30b0dfd973 (diff)
downloaddotfiles-ff330189a085723a66156d25fad747102db23beb.tar.gz
dotfiles-ff330189a085723a66156d25fad747102db23beb.tar.bz2
dotfiles-ff330189a085723a66156d25fad747102db23beb.zip
Fix flashing PDF documents
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r--emacs.d/init.el8
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."