# coding=utf-8
"""
Hotkey wiring for NimLime
"""
from sublime_plugin import EventListener
import sublime
from nimlime_core import settings

sync_list = {}

def gen_sync_settings(key, default):
    global sync_list
    
    def sync_settings():
        v = sublime.active_window().active_view()
        v.settings().set(key, settings.get(key, default))
        
    sync_list[key] = sync_settings
    settings.run_on_load_and_change(key, sync_settings)  



class HotkeySyncer(EventListener):
    def sync(self):
        global sync_list
        for callback in sync_list.values():
            callback()
            
    def on_new(self, view):
        self.sync()

    def on_clone(self, view):
        self.sync()

    def on_load(self, view):
        self.sync()

# coding=utf-8
"""
Hotkey wiring for NimLime
"""
from sublime_plugin import EventListener
import sublime
from nimlime_core import settings


sync_list = {}


def gen_sync_settings(key, default):
    global sync_list
    
    def sync_settings():
        v = sublime.active_window().active_view()
        v.settings().set(key, settings.get(key, default))
        
    sync_list[key] = sync_settings
    settings.run_on_load_and_change(key, sync_settings)  


gen_sync_settings("doccontinue.enabled", True)
gen_sync_settings("doccontinue.autostop", True)
    

class HotkeySyncer(EventListener):
    def sync(self):
        global sync_list
        for callback in sync_list.values():
            callback()
            
    def on_new(self, view):
        self.sync()

    def on_clone(self, view):
        self.sync()

    def on_load(self, view):
        self.sync()

Update hotkeys.py