def set_color_scheme(name, color_scheme, replace=True):
 section = 'color_schemes'
 names = CONF.get('color_schemes', 'names', [])
 for key in sh.COLOR_SCHEME_KEYS:
  option = ('%s/%s' % (name, key))
  value = CONF.get(section, option, default=None)
  if ((value is None) or replace or (name not in names)):
   CONF.set(section, option, color_scheme[key])
 names.append(to_text_string(name))
 CONF.set(section, 'names', sorted(list(set(names))))

def set_color_scheme ( name , color_scheme , replace = True ) : section = 'color_schemes' names = CONF . get ( 'color_schemes' , 'names' , [ ] ) for key in sh . COLOR_SCHEME_KEYS : option = ( '%s/%s' % ( name , key ) ) value = CONF . get ( section , option , default = None ) if ( ( value is None ) or replace or ( name not in names ) ) : CONF . set ( section , option , color_scheme [ key ] ) names . append ( to_text_string ( name ) ) CONF . set ( section , 'names' , sorted ( list ( set ( names ) ) ) )
set syntax color scheme .