'Apply configuration file\'s plugin settings'

def apply_plugin_settings(self, options):

    color_scheme_n = 'color_scheme_name'
    color_scheme_o = self.get_color_scheme()
    connect_n = 'connect_to_oi'
    wrap_n = 'wrap'
    wrap_o = self.get_option(wrap_n)
    self.wrap_action.setChecked(wrap_o)
    math_n = 'math'
    math_o = self.get_option(math_n)
    if (color_scheme_n in options):
        self.set_plain_text_color_scheme(color_scheme_o)
    if (wrap_n in options):
        self.toggle_wrap_mode(wrap_o)
    if (math_n in options):
        self.toggle_math_mode(math_o)
    self.main.editor.apply_plugin_settings(options=[connect_n])
    self.main.ipyconsole.apply_plugin_settings(options=[connect_n])
