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:
parent
c3c9c01bad
commit
9f249de569
1 changed files with 2 additions and 7 deletions
|
@ -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)))))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue