docview in emacs: refreshing dvi content automatically
Asked Answered
K

2

12

Is there a way Emacs can automatically refresh the buffer showing the dvi right after my LaTeX compilation? Thank you.

Kentiga answered 15/4, 2010 at 15:11 Comment(0)
A
22

Use interactive function:

auto-revert-mode

to enable reloading when the file changes.

Actor answered 15/4, 2010 at 15:33 Comment(1)
Or put (global-auto-revert-mode t) in .emacs in case you want this behavior for all files(I most certainly do)Od
E
22

The global auto revert is not always desirable, in fact I only use it for for the DocView to see the new output of pdflatex.

The following will allow auto revert for the DocView major mode

(add-hook 'doc-view-mode-hook 'auto-revert-mode)
Ejectment answered 16/1, 2011 at 14:2 Comment(1)
+1, this automation is exactly what I wanted and makes sense for read-only doc-view mode buffers, but would be potentially dangerous for other buffers.Gunter

© 2022 - 2024 — McMap. All rights reserved.