You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
I'm currently attempting to call the function company-org-roam--init-hook from org-mode-hook in order to enable the company-org-roam backend in org-roam buffers. In some of the files in which this hook is called, I've used a .dir-locals.el file to set org-roam-directory to a non-default value. However, when company-org-roam--init-hook is called while loading the file, it appears that org-roam-directory isn't set to its dir-local value, causing the hook not to enable the Company backend.
Is it expected that dir-local variables are applied only after major-mode hooks are run? If so, is there a way to work around this (besides a run-at-time)?
The text was updated successfully, but these errors were encountered:
Sorry for the late reply. I initially thought adding the hook would make installation easier, but I think it's best that the backend is added manually to company-backends. The company backend uses the buffer value of org-roam-directory, so it should handle dir-local org-roam-directories by default. I'll probably remove that piece of code.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(Not sure if this is an Emacs issue or an issue with this package, so also posted at https://emacs.stackexchange.com/q/57995/17182).
I'm currently attempting to call the function
company-org-roam--init-hook
fromorg-mode-hook
in order to enable thecompany-org-roam
backend inorg-roam
buffers. In some of the files in which this hook is called, I've used a.dir-locals.el
file to setorg-roam-directory
to a non-default value. However, whencompany-org-roam--init-hook
is called while loading the file, it appears thatorg-roam-directory
isn't set to its dir-local value, causing the hook not to enable the Company backend.Is it expected that dir-local variables are applied only after major-mode hooks are run? If so, is there a way to work around this (besides a
run-at-time
)?The text was updated successfully, but these errors were encountered: