Joost Kremers <[email protected]> writes: > On Thu, Sep 13 2018, Greg Bognar wrote: >> (add-hook 'LaTeX-mode-hook '(lambda () >> (add-to-list 'TeX-view-program-selection >> '((output-pdf "zathura"))) >> )) > > There's no need to do this in LaTeX-mode-hook, it should be enough to > have > > (add-to-list 'TeX-view-program-selection '((output-pdf "Zathura"))) > > in your init file.
Ah, but that depends on TeX-view-program-selection already being defined. You'd have to put this into an eval-after-load incantation or similar for this to work reliably. > Doing it in LaTeX-mode-hook means it's executed each time you open a > LaTeX file, which is harmless but unnecessary. But the usual way to do such stuff. -- David Kastrup _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
