From e88f413d4a568bb4496bc314186620cb43c307c3 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Tue, 26 Jun 2018 02:49:01 +0200 Subject: [PATCH] factored out setting --- modules/lang/latex/config.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index 52bba4314..871ed8372 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -186,19 +186,15 @@ (def-package! ivy-bibtex :when (featurep! :completion ivy) :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 :when (featurep! :completion helm) :commands helm-bibtex - :config + ) + +(after! bibtex-completion (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)