lang/latex: remove +latex-bibtex-file

An unnecessary layer of abstraction on top of two straight-forward
variables, reftex-default-bibliography and
bibtex-completion-bibliography.
This commit is contained in:
Henrik Lissner 2019-01-05 17:46:37 -05:00
parent c3c9c01bad
commit 9f249de569
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -18,10 +18,9 @@
(?t . "\\textcite[]{%l}")) (?t . "\\textcite[]{%l}"))
reftex-plug-into-AUCTeX t reftex-plug-into-AUCTeX t
reftex-toc-split-windows-fraction 0.3) reftex-toc-split-windows-fraction 0.3)
(when +latex-bibtex-file
(setq reftex-default-bibliography (list (expand-file-name +latex-bibtex-file))))
(map! :map reftex-mode-map (map! :map reftex-mode-map
:localleader ";" 'reftex-toc) :localleader
";" 'reftex-toc)
(add-hook! 'reftex-toc-mode-hook (add-hook! 'reftex-toc-mode-hook
(reftex-toc-rescan) (reftex-toc-rescan)
(map! :map 'local (map! :map 'local
@ -36,7 +35,3 @@
bibtex-align-at-equal-sign t bibtex-align-at-equal-sign t
bibtex-text-indentation 20) bibtex-text-indentation 20)
(define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry)) (define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry))
(after! bibtex-completion
(when +latex-bibtex-file
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file)))))