factored out setting
This commit is contained in:
parent
e5fc8b6c81
commit
e88f413d4a
1 changed files with 4 additions and 8 deletions
|
@ -186,19 +186,15 @@
|
||||||
(def-package! ivy-bibtex
|
(def-package! ivy-bibtex
|
||||||
:when (featurep! :completion ivy)
|
:when (featurep! :completion ivy)
|
||||||
:commands ivy-bibtex
|
:commands ivy-bibtex
|
||||||
:config
|
)
|
||||||
(setq ivy-bibtex-default-action 'ivy-bibtex-insert-key)
|
|
||||||
(unless (string-empty-p +latex-bibtex-file)
|
|
||||||
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file))))
|
|
||||||
(unless (string-empty-p +latex-bibtex-dir)
|
|
||||||
(setq bibtex-completion-library-path (list +latex-bibtex-dir)
|
|
||||||
bibtex-completion-notes-path (expand-file-name "notes.org" +latex-bibtex-dir))))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! helm-bibtex
|
(def-package! helm-bibtex
|
||||||
:when (featurep! :completion helm)
|
:when (featurep! :completion helm)
|
||||||
:commands helm-bibtex
|
:commands helm-bibtex
|
||||||
:config
|
)
|
||||||
|
|
||||||
|
(after! bibtex-completion
|
||||||
(unless (string-empty-p +latex-bibtex-file)
|
(unless (string-empty-p +latex-bibtex-file)
|
||||||
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file))))
|
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file))))
|
||||||
(unless (string-empty-p +latex-bibtex-dir)
|
(unless (string-empty-p +latex-bibtex-dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue