Fork me on GitHub
#editors
<
2015-06-29
>
chipf0rk18:06:09

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?

arrdem18:06:05

chipf0rk: what elpa sources are you using?

chipf0rk18:06:35

marmalade, tromey, melpa. To be honest I haven't thought about it, my Emacs setup was based on a base Clojure friendly setup

chipf0rk18:06:43

which one /should/ I be using? ;)

arrdem18:06:07

This is a subject of debate 😛 but if you have melpa you should be able to find company...

arrdem18:06:23

M-x list-packages RET C-s company

chipf0rk18:06:04

oh jeez, is the package called just "company"?

arrdem18:06:23

I think so

arrdem18:06:28

lemme check

chipf0rk18:06:47

I overlooked it looking for an exact match of "company-mode" :D Thank you, haha

chipf0rk18:06:07

:) To be fair to myself though, this isn't explicitly pointed out anywhere

chipf0rk18:06:12

I just assumed it was called the same as the repo

arrdem18:06:20

really? not in the CIDER docs?

arrdem18:06:50

well shit it isn't.

chipf0rk18:06:23

yeah, all that's mentioned is "use company-mode"

chipf0rk18:06:44

might be a source of confusion for others as well?

chipf0rk18:06:38

woop, thanks!

arrdem18:06:51

np, whining to bozhidar is easy 😛

chipf0rk19:06:01

+1 for the part about migrating from auto-complete-mode though, glad that existed

bozhidar19:06:25

if you ever meet Bozhidar in person buy him a beer or two simple_smile

bozhidar19:06:37

that’s what keeps those issue reports going 😉

bozhidar19:06:15

btw - company means *comp*lete *any*thing

chipf0rk19:06:45

I already planned on doing that

bozhidar19:06:28

company is also available in the default GNU ELPA repo, which is pretty neat

bozhidar19:06:45

rumour has it that one day it might become the default completion system for Emacs

chipf0rk19:06:44

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

chipf0rk19:06:44

I knew about the complete anything thing - pretty neat naming :D

arrdem19:06:42

bozhidar: no fear on that front, we just need to make it to the same con!

bozhidar19:06:42

the main advantage of company over ac is that the internal implementation is way simpler, meaning it’s easier to extend it

bozhidar19:06:58

compare two completion sources for company and ac and you’ll see what I mean simple_smile

bozhidar19:06:59

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

bozhidar19:06:23

notice there’s ac-cider, but there isn’t company-cider (because it’s simply not needed)

bozhidar19:06:06

you’ll also see some pretty great annotations next to candidate names in company (e.g. var type & ns)