├── .gitignore ├── js ├── templates │ ├── face-list.handlebars │ ├── theme-selector.handlebars │ ├── user-themes.handlebars │ ├── deftheme-panel.handlebars │ ├── deftheme.handlebars │ └── python.handlebars ├── themes.js └── lib │ └── spectrum.js ├── compile.sh ├── tools └── getEmacsColors.el ├── README.md ├── css ├── github.css ├── themes.css └── spectrum.css └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | \#* 3 | *# 4 | *.tmp 5 | *.bak 6 | .svn/** 7 | .DS_Store 8 | .\#* 9 | -------------------------------------------------------------------------------- /js/templates/face-list.handlebars: -------------------------------------------------------------------------------- 1 | {{#each this}} 2 |
After saving you can install the theme in Emacs by doing this:
9 |package-install-file
11 | Package file name: {path}/{{name}}-theme.el
12 | {path} is the location you saved {{name}}-theme.el
13 | Then you can activate it:
16 |load-theme
18 | Load custom theme: {{name}}
19 | {{{generated}}}
22 |
2 |
3 | {{{cm}}}# Python code sample{{{sx}}}
4 | {{{kw}}}import{{{sx}}} os, re
5 | {{{kw}}}from{{{sx}}} sys {{{kw}}}import{{{sx}}} {{{bi}}}exit{{{sx}}}
6 |
7 | {{{co}}}SOMECONST{{{sx}}} = None
8 | {{{va}}}somevariable{{{sx}}} = {{{bi}}}min{{{sx}}}({{{bi}}}sum{{{sx}}}(1,2), {{{bi}}}max{{{sx}}}({{{bi}}}range{{{sx}}}(10)))
9 |
10 | {{{kw}}}def{{{sx}}} {{{fn}}}some_callable{{{sx}}}(argument1, argument2=False):
11 | {{{st}}}""" Doc-string for some_callable function. """{{{sx}}}
12 | {{{kw}}}if{{{sx}}} {{{kw}}}not{{{sx}}} argument1:
13 | {{{kw}}}return{{{sx}}} {{{co}}}None{{{sx}}}
14 | {{{kw}}}try{{{sx}}}:
15 | argument1.do_stuff()
16 | {{{kw}}}except{{{sx}}} ({{{ty}}}AttributeError{{{sx}}}): {{{cm}}}# some comments{{{sx}}}
17 | {{{kw}}}if{{{sx}}} {{{kw}}}not{{{sx}}} can_fail:
18 | {{{kw}}}raise{{{sx}}}
19 | {{{kw}}}return{{{sx}}} argument1{{{sx}}}
20 |
21 | {{{kw}}}class{{{sx}}} {{{ty}}}RegexPattern{{{sx}}}({{{bi}}}object{{{sx}}}):
22 | {{{kw}}}def{{{sx}}} {{{fn}}}__init__{{{sx}}}({{{kw}}}self{{{sx}}}, regex, name):
23 | {{{kw}}}self{{{sx}}}.v = {{{st}}}"0.2.24"{{{sx}}}
24 | {{{rg}}} {{{kw}}}self{{{sx}}}.regex = re.compile(regex) {{{sx}}}{{{cu}}} {{{sx}}}
25 | {{{kw}}}self{{{sx}}}.name = name
26 |
27 | {{{kw}}}def{{{sx}}} {{{fn}}}__repr__{{{sx}}}({{{kw}}}self{{{sx}}}):
28 | {{{kw}}}return{{{sx}}} {{{st}}}'string <%s with %s> formatting'{{{sx}}} % ({{{kw}}}self{{{sx}}}.name, {{{kw}}}self{{{sx}}}.regex)
29 |
30 | {{{kw}}}def{{{sx}}} {{{fn}}}version{{{sx}}}({{{kw}}}self{{{sx}}}):
31 | {{{kw}}}return{{{sx}}} {{{st}}}'Version: %s'{{{sx}}} % ({{{kw}}}self{{{sx}}}.v)
32 |
33 | {{{kw}}}def{{{sx}}} {{{fn}}}resolve{{{sx}}}({{{kw}}}self{{{sx}}}, path):
34 | match = {{{kw}}}self{{{sx}}}.regex.search(path)
35 | {{{kw}}}if{{{sx}}} match:
36 | {{{cm}}}# Even more comments.
37 | # I love writing comments.{{{sx}}}
38 | {{{kw}}}if{{{sx}}} kwargs:
39 | args = ()
40 | {{{kw}}}else{{{sx}}}:
41 | args = match.groups()
42 | {{{ss}}} {{{kw}}}return{{{sx}}} args, kwargs{{{sx}}} {{{cm}}}# secondary selection{{{sx}}}
43 |
44 |
45 | 47 | --:**- project.py Bot 10% L20 (Python)------------------------- 48 |49 |
I-search:51 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |