Add ginger api by https://gist.github.com/syohex/5457732
Add c++-style
Sync current settings