Hongyi Zhao wrote (Tue, May 02, 2023 at 10:03:23PM +0800):
> The example setting of this variable is as follows:
> 
> (setq bibtex-completion-bibliography (directory-files-recursively
>                         (concat (getenv "HOME")
> "/texmf/bibtex/bib/local") "^[A-Za-z].+.bib$"))
> 
> But the above setup uses a fixed directory, so it doesn't meet the
> requirements here. Any suggestions for achieving the goal will be
> appreciated.

Random suggestion: in LaTeX-mode-hook

(setq (make-local-variable 'bibtex-completion-bibliography)
      (lisp-expression-to-create-the-list-of-files-that-you-want))

Disclaimer: not sure this will work, not sure it's the "right" way to achieve 
what you want, just something for you to try before the experts chime in.

-mandar

Reply via email to