Skip to content

Commit

Permalink
Improve bibcite config
Browse files Browse the repository at this point in the history
  • Loading branch information
chuxubank committed May 9, 2024
1 parent aab4657 commit 37b2005
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
30 changes: 19 additions & 11 deletions cats/+bibcite.el
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
;; -*- lexical-binding: t; -*-
(setq reftex-default-bibliography cat-default-bibliography-files
org-cite-global-bibliography cat-default-bibliography-files
org-cite-csl-styles-dir cat-default-csl-styles-dir
org-cite-insert-processor 'citar
org-cite-follow-processor 'citar
org-cite-activate-processor 'citar
bibtex-completion-additional-search-fields '(keywords)
bibtex-completion-pdf-field "file"
bibtex-completion-bibliography cat-default-bibliography-files)

(use-package oc
:ensure nil
:custom
(org-cite-global-bibliography cat-default-bibliography-files)
(org-cite-csl-styles-dir cat-default-csl-styles-dir)
(org-cite-insert-processor 'citar)
(org-cite-follow-processor 'citar)
(org-cite-activate-processor 'citar))

(use-package bibtex-completion
:custom
(bibtex-completion-additional-search-fields '(keywords))
(bibtex-completion-pdf-field "file")
(bibtex-completion-bibliography cat-default-bibliography-files)
:config
(bibtex-completion-init))

(defun +orb-note-update-file (citekey)
"Update the `org-noter-property-doc-file' property of the CITEKEY"
"Update the `org-noter-property-doc-file' property of the CITEKEY."
(citar--library-file-action
citekey
(lambda (file)
(org-entry-put nil org-noter-property-doc-file (abbreviate-file-name file)))))

(defun +orb-note-citar (citekey)
"Use `citar' to open the CITEKEY note file"
"Use `citar' to open the CITEKEY note file."
(citar-run-default-action (ensure-list citekey)))

(use-package org-roam-bibtex
Expand Down
5 changes: 5 additions & 0 deletions cats/+latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
(TeX-parse-self t)
(TeX-master nil)
(TeX-engine 'xetex))

(use-package reftex
:ensure nil
:custom
(reftex-default-bibliography cat-default-bibliography-files))

0 comments on commit 37b2005

Please sign in to comment.