It appears that you don’t have org-roam-bibtex
package installed.
In you private org-roam
layer put this
(defconst org-roam-packages
'(org-roam
org-roam-bibtex))
(defun org-roam/init-org-roam-bibtex ()
(use-package org-roam-bibtex
:after org-roam
:hook (org-roam-mode . org-roam-bibtex-mode)
:bind (:map org-mode-map
(("C-c n a" . orb-note-actions)))))
Also pay attention, that your configuration of org-roam
is not correct. You should put all these (setq ...)
statements inside (use-package org-roam ...)
under :config
section.
And yes, after adjusting org-roam
private layer to include org-roam-bibtex
, remove all mentions of org-roam-bibtex
from your user-config
, especially the (require 'org-roam-bibtex)
statement.
could you give me an example for this config section?
(defconst org-roam-packages
'(org-roam org-roam-bibtex))
(defun org-roam/init-org-roam ()
(use-package org-roam
:hook
(after-init . org-roam-mode)
:custom
(org-roam-directory "~/Dropbox/PHD/org-roam/")
:init
(progn
(spacemacs/declare-prefix "ar" "org-roam")
(spacemacs/set-leader-keys
"arl" 'org-roam
"art" 'org-roam-dailies-today
"arf" 'org-roam-find-file
"arg" 'org-roam-graph)
(spacemacs/declare-prefix-for-mode 'org-mode "mr" "org-roam")
(spacemacs/set-leader-keys-for-major-mode 'org-mode
"rl" 'org-roam
"rt" 'org-roam-dailies-today
"rb" 'org-roam-switch-to-buffer
"rf" 'org-roam-find-file
"ri" 'org-roam-insert
"rg" 'org-roam-graph))
:config
(setq org-roam-link-title-format "R:%s")
(setq org-roam-graph-viewer "/Applications/Firefox.app/Contents/MacOS/firefox")
(setq org-roam-graph-executable "/usr/local/bin/neato")
(setq org-roam-graph-extra-config '(("overlap" . "false")))
(setq org-roam-capture-templates
'(("d" "default" plain
(function org-roam-capture--get-point)
"%?"
:file-name "%<%Y%m%d%H%M%S>-${slug}"
:head "#+TITLE: ${title}\n#+CREATED: %U\n#+LAST_MODIFIED: %U\n#+OPTIONS: toc:nil\n#+LATEX_HEADER: \\usepackage[margin=1.1in]{geometry}\n#+LATEX_HEADER: \\renewcommand{\\baselinestretch}{1.25}\n\n"
:unnarrowed t)
("D" "default copy" plain
(function org-roam-capture--get-point)
"%?"
:file-name "%<%Y%m%d%H%M%S>-${slug}"
:head "#+TITLE: ${title}\n#+CREATED: %U\n#+LAST_MODIFIED: %U\n\n"
:unnarrowed t)))))
(defun org-roam/init-org-roam-bibtex ()
(use-package org-roam-bibtex
:after org-roam
:hook (org-roam-mode . org-roam-bibtex-mode)
:bind (:map org-mode-map
(("C-c n a" . orb-note-actions)))))
1 Like
mshevchuk:
And yes, after adjusting org-roam
private layer to include org-roam-bibtex
, remove all mentions of org-roam-bibtex
from your user-config
, especially the (require 'org-roam-bibtex)
statement.
So where does this configuration go?
(add-hook 'after-init-hook #'org-roam-bibtex-mode)
(define-key org-roam-bibtex-mode-map (kbd "C-c n a") #'orb-note-actions)
(setq org-ref-notes-function 'orb-edit-notes)
(setq org-ref-get-pdf-filename-function 'org-ref-get-pdf-filename-helm-bibtex
bibtex-completion-pdf-field "file"
bibtex-completion-notes-path "~/Dropbox/PHD/org-roam/"
bibtex-completion-additional-search-fields '(keywords)
org-ref-default-citation-link "cite")
Into the void. Remove these bits
(require 'org-roam-bibtex)
(add-hook 'after-init-hook #'org-roam-bibtex-mode)
(define-key org-roam-bibtex-mode-map (kbd "C-c n a") #'orb-note-actions)
(setq org-ref-notes-function 'orb-edit-notes)
1 Like