I am using spacemacs with racket-mode, company-mode, and scheme-complete, to code in racket, and its pretty efficient. But, in order to have completion for user defined variables and functions, I have to press tab to activate scheme-complete, since only scheme complete is aware of user defined variables/functions. And I don't know what Emacs thinks I want to type like I would if there was a drop down menu. Is there any way to make company mode aware of the user-defined variables/functions that scheme complete is aware of, so that they appear in the drop down menu. Currently it is only aware of built in functions like define, list, etc. I am still relatively new to emacs/spacemacs so I might be doing something stupid. Thanks in advance.

Edit: It seems like symbols become available after

racket run

is executed, but that doesn't exactly solve the problem of convenience.

  • 1
    Have you tried geiser instead? – caisah Jul 6 '16 at 6:24

One of the most robust ways to get autocompletion is to use dabbrev. It's bound to M-/ by default. You can use it to autocomplete variables, functions and many other things.

| improve this answer | |
  • 1
    refer: emacs.stackexchange.com/questions/15246/… – npostavs Jul 6 '16 at 13:39
  • @npostavs The solution in the link doesn't seem to do anything for me. – Vityou Jul 6 '16 at 21:06
  • 2
    I think they changed the names of some of the variables, I was able to activate it by customizing the variable company-backends. – Vityou Jul 6 '16 at 23:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.