From 15adad749cc1d3bbde7df27c7df446f70e8a0e5d Mon Sep 17 00:00:00 2001 From: moculus Date: Mon, 6 Apr 2009 15:27:01 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- method/__init__.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/method/__init__.py b/method/__init__.py index 71c9e1d..8faa311 100644 --- a/method/__init__.py +++ b/method/__init__.py @@ -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')