Dervin Thunk
Dervin Thunk

Reputation: 20139

docview in emacs: refreshing dvi content automatically

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

Upvotes: 12

Views: 4168

Answers (2)

Jesper.Reenberg
Jesper.Reenberg

Reputation: 5944

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)

Upvotes: 22

Jürgen Hötzel
Jürgen Hötzel

Reputation: 19747

Use interactive function:

auto-revert-mode

to enable reloading when the file changes.

Upvotes: 22

Related Questions