dvcrn / proton

space-atom. spacemacs and sublimious style editing in atom
GNU General Public License v3.0
565 stars 55 forks source link

How to translate configs from other packages #250

Open autoferrit opened 7 years ago

autoferrit commented 7 years ago

I would like to know how I can translate configs from other plugins, to use inside of .proton. Here are some examples

'linter-php':
  # php path. run 'which php' to find the path 
  'executablePath': /usr/bin/php

theres also others which dont state what the config value is, only showing the traditional settings page. Such as on

https://github.com/Peekmo/atom-autocomplete-php

jackcasey commented 7 years ago

I just do it by hand; ie in this case:

["linter-php.executablePath" "/usr/bin/php"]

In the latter case try changing the option to some non-default value and then look in your atom config.cson. It should be in there until you restart atom and proton nukes it. So you can get it from there and change it by hand and insert it into .proton.

dvcrn commented 7 years ago

A automatic translation would be great, but doesn't exist yet. The easiest way is to adjust your package through the UI, open the atom config and copy the keys you modified. The defaults can stay defaults so you don't have to put them into your .proton.

If you really want the defaults as well, check the repository of the package you are converting