-
eg inside here no completion happens : global corfu mode is on.
|
Beta Was this translation helpful? Give feedback.
Answered by
minad
Jan 21, 2024
Replies: 2 comments 2 replies
-
Yes, of course not. You need a special capf for this. See cape-elisp-block. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
minad
-
I'm not saying it should ;) Just that it is possible. I have a little
snippet in a global "get help" function I wrote which does just this for
relevant help facilities
(if (or (derived-mode-p 'emacs-lisp-mode) (and (eq
major-mode 'org-mode) (string= "emacs-lisp" (car
(org-babel-get-src-block-info)))))
(rgr/emacs-lisp-help)
Anyway, more than happy to use CAPE if thats the approach : consult my
favourite package and I thought I'd try corfu again.
regards
r.
…On Sun, 21 Jan 2024 at 04:43, Daniel Mendler ***@***.***> wrote:
Why of course not? It just works in normal el files.
The builtin Elisp Capf does not support Org files. How should it know
about such code blocks?
Company just figures it out.
"just" - I am not entirely sure know it works, but I assume that the extra
Company backend comes with special support for source blocks like
cape-elisp-block, see
https://github.com/company-mode/company-mode/blob/master/company-elisp.el.
Note that Company comes with a bunch of separate backends.
—
Reply to this email directly, view it on GitHub
<#418 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACYTC5HO3U3DJOOVOXBF7LYPSFGNAVCNFSM6AAAAABCDVJXWSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCOJVGI2DG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, of course not. You need a special capf for this. See cape-elisp-block.