Is it possible to have autocompletion of defprotocol methods in Emacs?
An example:
(defprotocol Foo
(bar [this])
(baz [this])
(deftype Qux [a b c]
Foo
(bar [this] a)
(baz [this] b))
(bar (Qux. 1 2 3))
(baz (Qux. 1 2 3))
I was looking for something like this(in pseudocode):
;; (1)
(`M-Tab` (Qux. 1 2 3))
;;
;; or (2):
(-> (Qux. 1 2 3) `M-Tab`)
to trigger a dropdown with bar
& baz
options.
As a workaround I'm currently using (2) but it needs to have at least 1st character to be present(autocomplete all options doesn't work).
Is there a better way to do it? Thanks