proton

https://github.com/dvcrn/proton
dvcrn 2016-02-08T01:31:23.000548Z

@jessejanderson: you need to start atom from the terminal to correct the path to iex

dvcrn 2016-02-08T01:31:36.000549Z

that's a problem with atom sadly

2016-02-08T04:46:39.000550Z

Ahh, k - thx.

dvcrn 2016-02-08T06:13:41.000551Z

@geksilla: really like that golden ratio plugin :simple_smile:

geksilla 2016-02-08T09:20:49.000552Z

@dvcrn thanks!

lucien.knechtli 2016-02-08T14:10:59.000553Z

@dvcrn: I'll try to compile a list if it's helpful.

lucien.knechtli 2016-02-08T14:38:13.000554Z

to be fair, a number of the issues I've come across are limitations of the packages available on atom vs the ones on emacs, not specifically proton itself

katy 2016-02-08T15:34:43.000555Z

do I have to upgrade Atom manually while using Proton? what about individual packages?

lucien.knechtli 2016-02-08T16:41:14.000556Z

If I want to disable pep8 and use flake8 instead, how do I go about doing so in .proton?

lucien.knechtli 2016-02-08T16:42:11.000557Z

the second part is easy - just add the package, but I'm not sure how to disable pep8 checks

2016-02-08T16:44:17.000558Z

Maybe ["core.disabledPackages" ["linter-pep8"]]

lucien.knechtli 2016-02-08T16:45:44.000559Z

nope

2016-02-08T16:45:47.000560Z

Oh, maybe not based on @dvcrn's comments on how disabledPackages works

2016-02-08T16:47:44.000561Z

So the linter-pep8 package has an ignoreErrorCodes array. You could add all the error codes to it.

2016-02-08T16:47:52.000562Z

Doesn't seem like a very good solution, but it'd work

2016-02-08T16:48:14.000563Z

Of course, it'd still be running in the background, which is also annoying

lucien.knechtli 2016-02-08T16:48:33.000564Z

yea, I'd rather avoid it being called at all by proton

2016-02-08T16:58:47.000565Z

@dvcrn: So there is no way to disable core packages?

2016-02-08T17:10:10.000566Z

So for package settings - Iā€™m supposed to do those in my dotfile, right? And ignore the normal Atom Package Settings section?

katy 2016-02-08T17:14:45.000567Z

@jessejanderson: yes

katy 2016-02-08T17:15:11.000568Z

for example, https://github.com/kmoe/dotfiles/blob/master/.proton#L100

2016-02-08T17:18:03.000570Z

Is there an obvious place to find what options are available for a package?

katy 2016-02-08T17:18:41.000571Z

My workflow is currently to set the package settings in the GUI as you're used to doing, then look at my Atom generated config file

katy 2016-02-08T17:19:00.000572Z

you can also go to the console and type atom.packages.config.defaultSettings

katy 2016-02-08T17:19:18.000573Z

(credit to austincrft :simple_smile: )

šŸ˜ 1
2016-02-08T17:19:52.000574Z

ahhhh, nice! Thanks.

lucien.knechtli 2016-02-08T17:46:57.000575Z

@austincrft: ended up changing the path that linter-pep8 looks at for pep8 to /bin/true. Still tries to run it, but a least its a simple solution

2016-02-08T17:48:59.000576Z

That also seems hacky, but it's better than writing all the error codes.

lucien.knechtli 2016-02-08T17:49:10.000577Z

yea

lucien.knechtli 2016-02-08T17:49:55.000578Z

it'll work until dvcrn tells us the right way / makes a right way :simple_smile:

lucien.knechtli 2016-02-08T17:51:57.000579Z

is there a right way to specify multiple settings in a single expression? like

["a.b.c" 
    ["d.e" "val"
     "f.g" "val2"]]

2016-02-08T17:58:28.000580Z

In that instance, a.b.c is a package name?

2016-02-08T18:03:20.000581Z

This doesn't seem to work for me

;; appearance
    ["editor" [["fontFamily" "Source Code Pro"]
               ["showIndentGuide" true]
               ["showInvisibles" true]
               ["fontSize" 12]
               ["softWrap" true]]

2016-02-08T18:03:32.000582Z

But I think that's what you were getting at

lucien.knechtli 2016-02-08T18:03:35.000583Z

thats what was getting at

lucien.knechtli 2016-02-08T18:03:49.000585Z

uhg keyboard

lucien.knechtli 2016-02-08T18:06:14.000586Z

on another note - atom seems to keep its process running hogging as much cpu as possible if you start it in a terminal and later close it

lucien.knechtli 2016-02-08T18:06:30.000587Z

not sure if that's proton or atom though

2016-02-08T18:07:06.000588Z

I'd argue that it isn't much better, though. The .proton file seems to be modeled in a way that you don't have to be familiar with clojure to modify it

lucien.knechtli 2016-02-08T18:08:23.000589Z

that's true, but it's a nice-to-have :simple_smile:

2016-02-08T18:08:53.000590Z

Which is also (I assume) why parinfer is disabled in the .proton by default. It would mess with the formatting.

lucien.knechtli 2016-02-08T18:09:03.000591Z

ah good point

2016-02-08T18:09:46.000592Z

Yeah, I think it'd look better from a clojure standpoint, but the current formatting is more straightforward

2016-02-08T18:11:17.000593Z

Now that I think about it, I have this line in my dotfile: ["minimap.plugins" [["git-diff" true] ["pigments" true]]]. I'd be willing to bet that this isn't working. šŸ˜›

lucien.knechtli 2016-02-08T18:11:25.000594Z

hehe

2016-02-08T18:14:09.000595Z

Yeah, changing it to

["minimap.plugins.git-diff" true]
["minimap.plugins.pigments" true]
made it work. I'm surprised I didn't notice it wasn't working. šŸ˜›

lucien.knechtli 2016-02-08T18:16:21.000596Z

wow that's really weird. when I start atom from term, I get 100% cpu usage for as long as that term is open. Closing it fixes it, and has no effect on atom...

2016-02-08T18:32:15.000597Z

That does seem pretty strange. I'm not experiencing that at all. What OS are you on?

lucien.knechtli 2016-02-08T18:34:40.000598Z

ubuntu 15.10, using zsh.

2016-02-08T18:35:27.000599Z

Hm. I don't have a linux machine next to me right now to test, but I don't experience that on Windows or OSX

lucien.knechtli 2016-02-08T18:35:37.000600Z

odd

lucien.knechtli 2016-02-08T18:35:57.000601Z

it may be zsh specific

2016-02-08T18:36:25.000602Z

That's possible. Mine sits at 0% and only spikes to about 0.5% when typign

lucien.knechtli 2016-02-08T18:37:21.000603Z

so when I run xterm bash then run atom inside it, it seems fine

2016-02-08T18:37:57.000604Z

Hm. I'd be interested in what zsh is doing with the process.

lucien.knechtli 2016-02-08T18:39:15.000605Z

not sure how to test that - maybe whatever atom uses to start the gui from the command line has an issue with zsh?

2016-02-08T18:48:14.000606Z

It's basically just running a modified version of chromium

lucien.knechtli 2016-02-08T18:49:19.000607Z

that I get - i'm not sure how to check what zsh is doing differently that bash when it starts stuff though

2016-02-08T18:50:52.000609Z

You could try running the chromium executable from zsh to see if it's specifically an incompatibility with Atom

2016-02-08T18:51:26.000610Z

If it's an Atom thing, I'd report it to the Atom repo. If not, report to the zsh repo if there is one?

2016-02-08T18:51:46.000611Z

I know admittedly nothing about zsh other than it's a shell alternative. šŸ˜›

lucien.knechtli 2016-02-08T18:52:02.000612Z

I'll look into it more tonight. Not really worth stressing over it atm since I have work to do šŸ˜›