docview in emacs: refreshing dvi content automatically

4.1k Views Asked by At

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

2

There are 2 best solutions below

1
On BEST ANSWER

Use interactive function:

auto-revert-mode

to enable reloading when the file changes.

1
On

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)