Alex Pogosyan

Emacs color-theme creator

Predefined themes:
import os, re
from sys import exit

SOMECONST = None
const2 = min(sum(1,2), max(range(10)))

def some_callable(argument1, argument2=False):
    """ Doc-string for some_callable function. """
    if not argument1:
        return None
    try:
        argument1.do_stuff()
    except (AttributeError): # some comments
        if not can_fail:
            raise
    return argument1 


class RegexPattern(object):
    def __init__(self, regex, name):
        self.regex = re.compile(regex)
        self.name = name

    def __repr__(self):
        return 'string <%s with %s> formatting' % (self.name, self.regex)

    def resolve(self, path):
        match = self.regex.search(path)
        if match:
            # Even more comments.
            # I love writing comments.
            if kwargs:
                args = ()
            else:
                args = match.groups()
            return args, kwargs
      
--:**-   project.py     Bot 10% L20     (Python)-------------------------
I-search:
Close [Esc]

You'll need color-theme installed. Copy this config and put it into a file on your emacs load path or directly in your .emacs.