Updated bindings in __main__.

This commit is contained in:
Michael Lazar
2016-02-09 23:08:44 -08:00
parent c5bf97efcc
commit 0de3033414
2 changed files with 5 additions and 1 deletions

View File

@@ -45,7 +45,10 @@ def main():
config = Config()
config.update(**fargs)
config.update(**args)
config.keymap.update(**bindings)
# If key bindings are supplied in the config file, overwrite the defaults
if bindings:
config.keymap.set_bindings(bindings)
# Copy the default config file and quit
if config['copy_config']:

View File

@@ -610,6 +610,7 @@ class KeyMap(object):
"""
def __init__(self, bindings):
self._keymap = None
self.set_bindings(bindings)
def set_bindings(self, bindings):