Fork me on GitHub
#proton
<
2016-08-09
>
dvcrn01:08:04

it was a variation with big tabs before but we reverted it. Most people seemed to prefer smaller tabs The ideal solution would be to not have tabs at all and treat open tabs like buffers like in other editors. You navigate with SPC b b + SPC tab and fuzzy jump between open files

dvcrn01:08:13

though most people didn't get that 😛

bazzy07:08:42

Hello, fellow protonists 😉

bazzy07:08:04

Please, help me to resolve configuring issues with proton. How I should write proton config statement, that tranforms to that block in config.cson:

".clojure.source":
  editor:
    tabLength: 1

spectre07:08:01

let me see

spectre07:08:03

@bazzy: you would probably have to do something like [“.clojure.source.editor.tabLength” 1]

bazzy07:08:15

Let me check

bazzy07:08:26

Nah, doesn't work. It transforms into the:

"":
    clojure:
      source:
        editor:
          tabLength: 1

spectre07:08:54

yea looks like this is a problem then, you have an edge case

spectre07:08:24

I would ask @dvcrn or open up an issue

bazzy07:08:42

I'm surprised, because any clojure-language package configs should be written in that ".clojure.source...." form

bazzy07:08:17

How do you guys reconfigure those defaults for clojure-language?

spectre07:08:30

yea not sure, not exactly the pro here

dvcrn07:08:09

hrrm I'm pretty sure we had this problem before

dvcrn07:08:50

I knew we had that before!

dvcrn07:08:22

@bazzy, @spectre: use

["editor.tabLength" 2 {:scopeSelector [".source.clojure"]}]
apologies for not having documented this earlier

bazzy08:08:26

@dvcrn Thanks a lot, it helps 👍

dvcrn09:08:33

@bazzy: no problem! You can use the scopeSelector as well to apply the same options to multiple scopes. Just add them to the array

ikhthiandor10:08:04

I'm using Proton with Atom 1.11. It was too slow to use before that. Great work done with Proton by just a handful of you guys. Much appreciated 🙂

ikhthiandor10:08:54

@dvcrn: Can I create private layers in proton like in spacemacs?

dvcrn11:08:58

@ikhthiandor: yes and no. You can’t put them into a directory and let proton read it because clojurescript is a compiled language. But you can clone fork+clone the project, create a new layer and run lein run -m build/release and it compiles it with your newly created layer

ikhthiandor11:08:32

ok. thanks for clarifying

jgrimes15:08:11

It seems like it should eventually be possible to have a bootstrapped clojurescript compiler for loading cljs at runtime, right?

dvcrn15:08:47

that is the goal, yes

dvcrn15:08:59

but last time I checked bootstrap cljs was still too new

jgrimes15:08:11

yeah. Having an atom setup for it would be awesome though. I saw that proto-repl has a self hosted cljs repl, but it is unclear how useful it is yet

dvcrn15:08:28

if you have experience with it, please. We could definitely need that knowledge 🙂

jgrimes15:08:50

haha, I hacked replumb to let me use the compiler piece rather than just eval in the browser, but I barely understood how I actually got it working

dvcrn15:08:03

it would already help a lot if we could turn .proton from edn into a real cljs file that allows anonymous function definitions. if we read that with bootstrap and get the functions to be useful it would be huge

dvcrn15:08:46

we could start shifting more power into .proton like allowing keybindings to directly execute anonymous functions that receive some of the atom context (like workspace, etc). That would be the first step in direction “private layers"

spectre19:08:22

@ikhthiandor: how much of a speed boost are you noticing with atom beta vs atom? I definitely notice that the space menu opens up and move a lot faster, and some of the UI just feels a lot faster