lang/latex: general refactor

This commit is contained in:
Henrik Lissner
2018-07-30 02:38:42 +02:00
parent 2e6c362df9
commit 14f4e4384a
4 changed files with 42 additions and 49 deletions

View File

@ -18,7 +18,7 @@
(?t . "\\textcite[]{%l}"))
reftex-plug-into-AUCTeX t
reftex-toc-split-windows-fraction 0.3)
(unless (string-empty-p +latex-bibtex-file)
(unless +latex-bibtex-file
(setq reftex-default-bibliography (list (expand-file-name +latex-bibtex-file))))
(map! :map reftex-mode-map
:localleader :n ";" 'reftex-toc)
@ -38,7 +38,5 @@
(define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry))
(after! bibtex-completion
(unless (string-empty-p +latex-bibtex-file)
(unless +latex-bibtex-file
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file)))))