Launching a viewer after compilation is successful, and monitor files to recompile as soon as possible.
Viewer has to be configurable (default value: xdg-open or see). Possibly at last an interesting value for a global option (dotfile). Polling interval should also be configurable. Maybe use inotify mechanism?