Malabarba / names

A Namespace implementation for Emacs-Lisp
250 stars 19 forks source link

How to deal with completions? #22

Open CestDiego opened 9 years ago

CestDiego commented 9 years ago

How to complete functions that are defined in the current namespace. Is there even a way for company or autocomplete to be context aware and complete functions without the namespace while inside the defined namespace and then complete functions with the namespace when writing code outside of the package? as in trying to setq a variable defined in our package?

Malabarba commented 9 years ago

Right now there's nothing as smart as that. The company-ddabrev backend is capable of completing names without the namespace, and the company-capf offers names with the namespace. So if you use both backends you should be offered both options at least.

That said I'm about to release another package (Nameless), whichi will provide a similar effect to Names with much less fuss (and it works with company). So hang tight.

CestDiego commented 9 years ago

I saw nameless package :) and was curious about it. but will it mess with the fill-column?

Malabarba commented 9 years ago

There's a variable in it called nameless-affect-indentation-and-filling. So you can set it to nil if you don't want to affect the fill-column, or you can set it to 'outside-strings if you're only worried about strings.