factored out setting

This commit is contained in:
Patrick Elliott 2018-06-26 02:49:01 +02:00
parent e5fc8b6c81
commit e88f413d4a

View file

@ -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)