lang/latex: replace viewer flags with variable

The +zathura, +skim, +okular and +pdf-tools module flags have been
removed in favor of +latex-viewers, which takes a list of symbols. Its
order determines the priority. The first viewer found on your system is
used.

If none of these viewers are found, it will fall back to
latex-preview-pane.
This commit is contained in:
Henrik Lissner 2018-07-30 01:05:56 +02:00
parent c96c2aa7fb
commit 2e6c362df9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 45 additions and 33 deletions

View file

@ -11,6 +11,13 @@
enabling unicode symbols in math regions. This requires the unicode-math latex
package to be installed.")
(defconst +latex-viewers `(skim zathura okular pdf-tools)
"A list of enabled latex viewers to use, in this order. If they don't exist,
they will be ignored. Recognized viewers are skim, zathura, okular and
pdf-tools.
If no viewers are found, `latex-preview-pane' is used.")
;;
(defvar +latex--company-backends nil)