summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-08-09 20:31:44 +0200
committerThomas F. K. Jorna <[email protected]>2021-08-09 20:31:44 +0200
commitccf8dd47bdb04289cce7ae690d9ce21c09254a01 (patch)
tree99886c2bd50dac4b9aeb3d7f4c31df0d62805ff7 /org-roam-ui.el
parent10bc61ced096e25c92509d50f598eab53faef834 (diff)
fix: #56 org-preformat-keywords not containing keywords
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 9c95d17..efea3af 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -155,7 +155,7 @@ This serves the web-build and API over HTTP."
(org-roam-ui-mode
;;; check if the default keywords actually exist on `orb-preformat-keywords'
;;; else add them
- (org-roam-ui--check-orb-keywords)
+ ;; (org-roam-ui--check-orb-keywords) ;
(setq-local httpd-port org-roam-ui-port)
(setq httpd-root org-roam-ui/app-build-dir)
(httpd-start)
@@ -226,8 +226,10 @@ Requires `org-roam-bibtex' and `bibtex-completion' (a dependency of `orb') to be
loaded. Returns `ref' if an entry could not be found."
(if (and org-roam-ui-find-ref-title
(fboundp 'bibtex-completion-get-entry)
- (fboundp 'orb--pre-expand-template))
- (if-let ((entry (bibtex-completion-get-entry ref)))
+ (fboundp 'orb--pre-expand-template)
+ (boundp 'orb-preformat-keywords))
+ (if-let ((entry (bibtex-completion-get-entry ref))
+ (orb-preformat-keywords (append orb-preformat-keywords '("author-abbrev" "year" "title"))))
;; Create a fake capture template list, only the actual capture at 3
;; matters. Interpolate the bibtex entries, and extract the filled
;; template from the return value.