parent
343d1c2383
commit
15adad749c
|
@ -1085,7 +1085,8 @@ class ToggleLineNumbers(Method):
|
|||
|
||||
class SetTabWidth(Method):
|
||||
'''Set the tab-width for the current buffer'''
|
||||
args = [arg('width', t=type(0), p="Tab Width: ", h='New tab width for buffer')]
|
||||
args = [arg('width', t=type(0), p="Tab Width: ",
|
||||
h='New tab width for buffer')]
|
||||
def _execute(self, w, **vargs):
|
||||
w.mode.tabwidth = vargs['width']
|
||||
w.set_error('Tab width set to %d' % w.mode.tabwidth)
|
||||
|
@ -1093,7 +1094,8 @@ class SetTabWidth(Method):
|
|||
class SetModeTabWidth(Method):
|
||||
'''Set the default tab-width for the current mode'''
|
||||
args = [arg('mode', dt='mode', p="Mode: ", h=''),
|
||||
arg('width', t=type(0), p="Default Tab Width: ", h='New default tab width for mode')]
|
||||
arg('width', t=type(0), p="Default Tab Width: ",
|
||||
h='New default tab width for mode')]
|
||||
def _execute(self, w, **vargs):
|
||||
app, mode = w.application, vargs['mode']
|
||||
if mode not in app.modes:
|
||||
|
@ -1101,3 +1103,10 @@ class SetModeTabWidth(Method):
|
|||
return
|
||||
app.modes[mode].tabwidth = vargs['width']
|
||||
w.set_error('Default tab width set to %d' % app.modes[mode].tabwidth)
|
||||
|
||||
class SetTokenColors(Method):
|
||||
args = [arg('name', p='Token Name: ', h=''),
|
||||
arg('colors', p='Colors: ', h='')]
|
||||
def _execute(self, w, **vargs):
|
||||
a = w.application
|
||||
w.set_error('Noop')
|
||||
|
|
Loading…
Reference in New Issue