Emacs question: I want to set up company-mode in Emacs but it tells me the package "company-mode" is unavailable, how did this happen and how can I fix it?
chipf0rk: what elpa sources are you using?
marmalade, tromey, melpa. To be honest I haven't thought about it, my Emacs setup was based on a base Clojure friendly setup
which one /should/ I be using? ;)
This is a subject of debate 😛 but if you have melpa you should be able to find company...
M-x list-packages RET C-s company
oh jeez, is the package called just "company"?
I think so
lemme check
yep.
I overlooked it looking for an exact match of "company-mode" :D Thank you, haha
np!
:) To be fair to myself though, this isn't explicitly pointed out anywhere
I just assumed it was called the same as the repo
really? not in the CIDER docs?
well shit it isn't.
yeah, all that's mentioned is "use company-mode"
might be a source of confusion for others as well?
woop, thanks!
np, whining to bozhidar is easy 😛
also fun!
hahaha
+1 for the part about migrating from auto-complete-mode though, glad that existed
haha
if you ever meet Bozhidar in person buy him a beer or two :simple_smile:
that’s what keeps those issue reports going 😉
btw - company
means *comp*lete *any*thing
I already planned on doing that
company is also available in the default GNU ELPA repo, which is pretty neat
rumour has it that one day it might become the default completion system for Emacs
what's the advantages? The README has been in my pinned tabs for two weeks now. I actually only installed it now because ac bugged out
I knew about the complete anything thing - pretty neat naming :D
bozhidar: no fear on that front, we just need to make it to the same con!
the main advantage of company over ac is that the internal implementation is way simpler, meaning it’s easier to extend it
compare two completion sources for company and ac and you’ll see what I mean :simple_smile:
it’s also built on top of standard Emacs completion functionality, which means that it will often work out of the box without any custom plugins
notice there’s ac-cider
, but there isn’t company-cider
(because it’s simply not needed)
you’ll also see some pretty great annotations next to candidate names in company (e.g. var type & ns)