Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completions not working properly in org-mode source blocks #35

Open
wuqui opened this issue Sep 3, 2020 · 0 comments
Open

Completions not working properly in org-mode source blocks #35

wuqui opened this issue Sep 3, 2020 · 0 comments

Comments

@wuqui
Copy link

wuqui commented Sep 3, 2020

Anaconda mode is really great for use in org-mode files with Python blocks, by far the best option I've found so far.

I've installed company-anaconda and everything -- including code-completion -- is working perfectly in .py files in ordinary Python mode.

It generally also works quite well in org-mode buffers, but code completion only works via the standard C-M-i interface, not via the company-integrated version. If I manually trigger the command via M-x company-anaconda the completions work as expected, but they don't show up automatically and I can't trigger them via C-SPC etc. This is the case both for editing source blocks in the .org buffer as well als in org-edit-special buffers.

Is it possible that this is due to a clash between org-mode and anaconda-mode in the same buffer? I think org-mode or something else is overwriting my attempts to get completions from the company-anaconda backend. Can I force the desired behaviour somehow?

I'm using Doom Emacs. The values of the following variables might be relevant.

company-backends:

(company-dabbrev company-yasnippet company-ispell company-anaconda company-capf)

+company-backend-alist+

((reftex-mode company-reftex-labels company-reftex-citations)
 (ess-r-mode
  (company-R-args company-R-objects company-dabbrev-code :separate))
 (latex-mode
  (+latex-symbols-company-backend company-auctex-macros company-auctex-environments))
 (anaconda-mode
  (company-anaconda))
 (org-mode company-capf company-dabbrev)
 (text-mode company-dabbrev company-yasnippet company-ispell)
 (prog-mode company-capf company-yasnippet)
 (conf-mode company-capf company-dabbrev-code company-yasnippet))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant