Discussion about all editors used for Clojure/ClojureScript
chipf0rk 2015-06-29T18:50:09.001309Z

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?

arrdem 2015-06-29T18:51:05.001310Z

chipf0rk: what elpa sources are you using?

chipf0rk 2015-06-29T18:51:35.001311Z

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

chipf0rk 2015-06-29T18:51:43.001312Z

which one /should/ I be using? ;)

arrdem 2015-06-29T18:52:07.001313Z

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

arrdem 2015-06-29T18:52:23.001314Z

M-x list-packages RET C-s company

chipf0rk 2015-06-29T18:53:04.001315Z

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

arrdem 2015-06-29T18:53:23.001316Z

I think so

arrdem 2015-06-29T18:53:28.001317Z

lemme check

arrdem 2015-06-29T18:53:46.001318Z


chipf0rk 2015-06-29T18:53:47.001319Z

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

arrdem 2015-06-29T18:54:03.001320Z


chipf0rk 2015-06-29T18:55:07.001321Z

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

chipf0rk 2015-06-29T18:55:12.001322Z

I just assumed it was called the same as the repo

arrdem 2015-06-29T18:55:20.001323Z

really? not in the CIDER docs?

arrdem 2015-06-29T18:55:50.001324Z

well shit it isn't.

chipf0rk 2015-06-29T18:56:23.001325Z

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

chipf0rk 2015-06-29T18:56:44.001326Z

might be a source of confusion for others as well?

arrdem 2015-06-29T18:58:35.001327Z


chipf0rk 2015-06-29T18:59:38.001329Z

woop, thanks!

arrdem 2015-06-29T18:59:51.001330Z

np, whining to bozhidar is easy 😛

arrdem 2015-06-29T18:59:58.001331Z

also fun!

chipf0rk 2015-06-29T19:00:02.001332Z


chipf0rk 2015-06-29T19:01:01.001333Z

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

bozhidar 2015-06-29T19:01:18.001334Z


bozhidar 2015-06-29T19:02:25.001335Z

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

bozhidar 2015-06-29T19:02:37.001336Z

that’s what keeps those issue reports going 😉

bozhidar 2015-06-29T19:03:15.001337Z

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

chipf0rk 2015-06-29T19:03:45.001339Z

I already planned on doing that

bozhidar 2015-06-29T19:04:28.001340Z

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

bozhidar 2015-06-29T19:04:45.001341Z

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

chipf0rk 2015-06-29T19:05:44.001342Z

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

chipf0rk 2015-06-29T19:06:44.001343Z

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

arrdem 2015-06-29T19:43:42.001344Z

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

bozhidar 2015-06-29T19:44:42.001345Z

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

bozhidar 2015-06-29T19:44:58.001346Z

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

bozhidar 2015-06-29T19:45:59.001347Z

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

bozhidar 2015-06-29T19:46:23.001348Z

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

bozhidar 2015-06-29T19:47:06.001349Z

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