Skip to content

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

@wuqui

Description

@wuqui

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions