Closed eren-rudy closed 2 years ago
The backtrace indicates that ORB functions are not actually called when you try to create notes with M-x helm-bibtex
, F8
, Open Notes
. This can happen when you do not have org-roam-bibtex-mode
running. Calling org-roam-bibtex-mode
arranges for a few tweaks, in particular, it makes Helm-bibtex use Org-roam for note taking.
Indeed, the following statement in your config.el
: (setq org-roam-bibtex-mode t)
does not do what you think it should do. From the docstring of the org-roam-bibtex-mode
variable:
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function org-roam-bibtex-mode.
This is in fact true for any major or minor Emacs mode. One should call the corresponding function instead of setting the mode variable. Mode variables are sort of internal - they are often used in subroutines to determine whether a particular mode is running or not, but setting them directly - setting any Emacs variable - does not normally execute code.
So in short, put (org-roam-bibtex-mode +1)
somewhere in your config. You can wrap this call in an after! org-roam
statement, so as to load ORB after Org-roam.
That did the trick, thank you! Somehow I had tricked myself into thinking that setting the variable manually had done something, I guess it had just been a very long time since I had quit Emacs.
Describe the bug Can't open associated org-roam note when navigating citations with helm-bibtex.
To Reproduce
zotero.bib
in BibLaTex formatExpected behavior I expect the org-roam node associated with the citation to open. Alternatively, if there is no org-roam node, it should create one. I have tried both cases without success.
Things I've tried
doom doctor
seemed to be complaining that org-ref wasn't loading, so I added(package! org-ref)
in mypackages.el
, which seemed to resolve that issue.ORB configuration
(package! org-ref)
(package! org-roam-bibtex
:recipe (:host github :repo "org-roam/org-roam-bibtex"))
(unpin! org-roam)
(unpin! bibtex-completion helm-bibtex ivy-bibtex)
(use-package! org-roam-bibtex
:after org-roam
:config
(require 'org-ref))
(setq org-roam-bibtex-mode t)
(setq bibtex-completion-bibliography "~/Library/Mobile Documents/com~apple~CloudDocs/zotero.bib")
(setq bibtex-dialect 'biblatex)
(setq org-ref-cite-insert-version 2)
Environment (please complete the following information):
Screenshots Here is the debug output generated via
toggle-debug-on-error