summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-02-18 10:23:40 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-02-18 10:27:30 +0000
commit162ecf6dcd9bdb5bac4b114a121572db7dfef7f1 (patch)
tree06d5dd489a13aa99beb711d9fa2aff18bf319945
parent7b42d592d33c165793d194ed0eee933d43f85394 (diff)
added configs and specs
-rw-r--r--alot/defaults/alot.rc321
-rw-r--r--alot/defaults/alot.rc.spec107
-rw-r--r--alot/defaults/notmuch.rc.spec3
-rw-r--r--alot/defaults/theme.rc329
-rw-r--r--alot/defaults/theme.rc.spec14
-rwxr-xr-xsetup.py9
6 files changed, 529 insertions, 254 deletions
diff --git a/alot/defaults/alot.rc b/alot/defaults/alot.rc
index d6dfa0c3..07af54e7 100644
--- a/alot/defaults/alot.rc
+++ b/alot/defaults/alot.rc
@@ -182,256 +182,71 @@ clo = close
bp = bprevious
ls = bufferlist
-[highlighting]
-# Thread lines in the search buffer can be highlighted if they match a query
-# by theming their components.
-
-# dictionary of highlighting rules. The keys are queries you want highlighting
-# for; values are chosen designators that identify themeing options in the
-# colour scheme:
-# search_thread_<component>_<id>_[focus_][fg|bg]
-# Note that the sequence of the list defines the search order. The first
-# specified query that matches selects the themeing.
-rules = { "tag:unread AND tag:flagged":"isunread+flagged",
- "tag:unread":"isunread",
- "tag:flagged":"isflagged" }
-
-# comma separated list of the components of a thread line you want highlighted
-# if a query matches.
-# Possible components are [date|mailcount|tags|authors|subject|content].
-components = subject
-
-[256c-theme]
-
-# default formating for tagstrings
-# add 'tag_X_[focus_]fg' and 'tag_X_[focus_]bg' to your config to specify
-# formating for tagstring 'X'
-tag_bg = default
-tag_fg = brown
-tag_focus_bg = #68a
-tag_focus_fg = #ffa
-
-#draft tag in red
-tag_draft_bg = #d66
-tag_draft_fg = white
-
-# formating of the `help bindings` overlay
-help_text_bg = g35
-help_text_fg = default
-help_section_bg = g35
-help_section_fg = bold,underline
-help_title_bg = g35
-help_title_fg = white,bold,underline
-
-# attributes used in all modi
-global_footer_bg = #006
-global_footer_fg = white
-global_notify_error_bg = dark red
-global_notify_error_fg = white
-global_notify_normal_bg = #68a
-global_notify_normal_fg = light gray
-global_prompt_bg = g10
-global_prompt_fg = light gray
-
-# mode specific attributes
-bufferlist_focus_bg = #68a
-bufferlist_focus_fg = #ffa
-bufferlist_results_even_bg = g3
-bufferlist_results_even_fg = default
-bufferlist_results_odd_bg = default
-bufferlist_results_odd_fg = default
-search_thread_authors_bg = default
-search_thread_authors_fg = #6d6
-search_thread_authors_isunread_fg = #6d6,bold
-search_thread_authors_isunread+flagged_fg = #6d6,bold
-search_thread_authors_focus_bg = #68a
-search_thread_authors_focus_fg = #8f6
-search_thread_authors_isunread_focus_fg = #8f6,bold
-search_thread_authors_isunread+flagged_focus_fg = #8f6,bold
-search_thread_bg = default
-search_thread_content_bg = default
-search_thread_content_fg = #866
-search_thread_content_isunread_fg = #866,bold
-search_thread_content_isunread+flagged_fg = #866,bold
-search_thread_content_focus_bg = #68a
-search_thread_content_focus_fg = #866
-search_thread_content_isunread_focus_fg = #866,bold
-search_thread_content_isunread+flagged_focus_fg = #866,bold
-search_thread_date_bg = default
-search_thread_date_fg = g58
-search_thread_date_isunread_fg = g58,bold
-search_thread_date_isflagged_fg = light red
-search_thread_date_isunread+flagged_fg = light red,bold
-search_thread_date_focus_bg = #68a
-search_thread_date_focus_fg = g89
-search_thread_date_isunread_focus_fg = g89,bold
-search_thread_date_isflagged_focus_fg = light red
-search_thread_date_isunread+flagged_focus_fg = light red,bold
-search_thread_fg = default
-search_thread_focus_bg = #68a
-search_thread_focus_fg = white
-search_thread_mailcount_bg = default
-search_thread_mailcount_fg = light gray
-search_thread_mailcount_isunread_fg = light gray,bold
-search_thread_mailcount_isflagged_fg = light red
-search_thread_mailcount_isunread+flagged_fg = light red,bold
-search_thread_mailcount_focus_bg = #68a
-search_thread_mailcount_focus_fg = g89
-search_thread_mailcount_isunread_focus_fg = g89,bold
-search_thread_mailcount_isflagged_focus_fg = light red
-search_thread_mailcount_isunread+flagged_focus_fg = light red,bold
-search_thread_subject_bg = default
-search_thread_subject_fg = g58
-search_thread_subject_isunread_fg = g58,bold
-search_thread_subject_isflagged_fg = light red
-search_thread_subject_isunread+flagged_fg = light red,bold
-search_thread_subject_focus_bg = #68a
-search_thread_subject_focus_fg = g89
-search_thread_subject_isunread_focus_fg = g89,bold
-search_thread_subject_isflagged_focus_fg = light red
-search_thread_subject_isunread+flagged_focus_fg = light red,bold
-search_thread_tags_bg = default
-search_thread_tags_fg = #a86
-search_thread_tags_focus_bg = #68a
-search_thread_tags_focus_fg = #ff8
-thread_attachment_bg = dark gray
-thread_attachment_fg = light gray
-thread_attachment_focus_bg = light green
-thread_attachment_focus_fg = light gray
-thread_body_bg = default
-thread_body_fg = light gray
-thread_header_bg = dark gray
-thread_header_fg = white
-thread_header_key_bg = dark gray
-thread_header_key_fg = white
-thread_header_value_bg = dark gray
-thread_header_value_fg = light gray
-thread_summary_even_bg = #068
-thread_summary_even_fg = white
-thread_summary_focus_bg = g58
-thread_summary_focus_fg = #ff8
-thread_summary_odd_bg = #006
-thread_summary_odd_fg = white
-
-
-[16c-theme]
-global_footer_bg = dark blue
-global_footer_fg = light green
-global_notify_error_bg = dark red
-global_notify_error_fg = white
-global_notify_normal_bg = dark gray
-global_notify_normal_fg = light gray
-global_prompt_bg = black
-global_prompt_fg = light gray
-help_text_bg = dark gray
-help_text_fg = default
-help_section_bg = dark gray
-help_section_fg = bold,underline
-help_title_bg = dark blue
-help_title_fg = white
-tag_bg = black
-tag_fg = brown
-tag_focus_bg = dark gray
-tag_focus_fg = white
-tag_draft_bg = light red
-tag_draft_fg = white
-bufferlist_focus_bg = dark gray
-bufferlist_focus_fg = white
-bufferlist_results_even_bg = black
-bufferlist_results_even_fg = light gray
-bufferlist_results_odd_bg = black
-bufferlist_results_odd_fg = light gray
-thread_attachment_bg = dark gray
-thread_attachment_fg = light gray
-thread_attachment_focus_bg = light green
-thread_attachment_focus_fg = light gray
-thread_body_bg = default
-thread_body_fg = light gray
-thread_header_bg = dark gray
-thread_header_fg = white
-thread_header_key_bg = dark gray
-thread_header_key_fg = white
-thread_header_value_bg = dark gray
-thread_header_value_fg = light gray
-thread_summary_even_bg = light blue
-thread_summary_even_fg = white
-thread_summary_focus_bg = dark cyan
-thread_summary_focus_fg = white
-thread_summary_odd_bg = dark blue
-thread_summary_odd_fg = white
-search_thread_authors_bg = default
-search_thread_authors_fg = dark green
-search_thread_authors_isunread_fg = dark green,bold
-search_thread_authors_focus_bg = dark gray
-search_thread_authors_focus_fg = dark green,bold
-search_thread_bg = default
-search_thread_content_bg = default
-search_thread_content_fg = dark gray
-search_thread_content_focus_bg = dark gray
-search_thread_content_focus_fg = black
-search_thread_date_bg = default
-search_thread_date_fg = light gray
-search_thread_date_focus_bg = dark gray
-search_thread_date_focus_fg = light gray
-search_thread_fg = default
-search_thread_focus_bg = dark gray
-search_thread_focus_fg = light gray
-search_thread_mailcount_bg = default
-search_thread_mailcount_fg = light gray
-search_thread_mailcount_focus_bg = dark gray
-search_thread_mailcount_focus_fg = light gray
-search_thread_subject_bg = default
-search_thread_subject_fg = light gray
-search_thread_subject_isunread_fg = light gray,bold
-search_thread_subject_isflagged_fg = light red
-search_thread_subject_focus_bg = dark gray
-search_thread_subject_focus_fg = light gray
-search_thread_subject_isunread_focus_fg = light gray,bold
-search_thread_subject_isflagged_focus_fg = light red,bold
-search_thread_tags_bg = default
-search_thread_tags_fg = brown
-search_thread_tags_focus_bg = dark gray
-search_thread_tags_focus_fg = yellow,bold
-
-
-[1c-theme]
-global_footer = standout
-global_notify_error = standout
-global_notify_normal = default
-global_prompt =
-help_text = default
-help_section = underline
-help_title = standout
-tag = default
-tag_focus = standout, bold
-tag_draft = standout
-bufferlist_focus = standout
-bufferlist_results_even = default
-bufferlist_results_odd = default
-search_thread = default
-search_thread_authors = default,underline
-search_thread_authors_focus = standout
-search_thread_content = default
-search_thread_content_focus = standout
-search_thread_date = default
-search_thread_date_focus = standout
-search_thread_focus = standout
-search_thread_mailcount = default
-search_thread_mailcount_focus = standout
-search_thread_subject = default
-search_thread_subject_isunread = bold
-search_thread_subject_isflagged = underline
-search_thread_subject_focus = standout
-search_thread_subject_isunread_focus = standout,bold
-search_thread_subject_isflagged_focus = standout,underline
-search_thread_tags = bold
-search_thread_tags_focus = standout
-thread_attachment = default
-thread_attachment_focus = underline
-thread_body = default
-thread_header = default
-thread_header_key = default
-thread_header_value = default
-thread_summary_even =
-thread_summary_focus = standout
-thread_summary_odd =
+[mas]
+ [[global]]
+ j = move down
+ k = move up
+ ' ' = move page down
+ esc = cancel
+ enter = select
+
+ @ = refresh
+ ? = help bindings
+ I = search tag:inbox AND NOT tag:killed
+ L = taglist
+ shift tab = bprevious
+ U = search tag:unread
+ tab = bnext
+ \ = prompt 'search '
+ d = bclose
+ $ = flush
+ m = compose
+ o = prompt 'search '
+ q = exit
+ ';' = bufferlist
+ ':' = prompt
+
+ [[bufferlist]]
+ x = close
+ select = openfocussed
+
+ [[search]]
+ a = toggletags inbox
+ & = toggletags killed
+ ! = toggletags flagged
+ s = toggletags unread
+ l = retagprompt
+ O = refineprompt
+ | = refineprompt
+
+ [[envelope]]
+ a = prompt 'attach ~/'
+ y = send
+ P = save
+ s = 'refine Subject'
+ t = 'refine To'
+ b = 'refine Bcc'
+ c = 'refine Cc'
+ select = edit
+ H = toggleheaders
+
+ [[taglist]]
+
+ [[thread]]
+ C = fold --all
+ E = unfold --all
+ c = fold
+ e = unfold
+ < = fold
+ > = unfold
+ H = toggleheaders
+ h = togglesource
+ P = print --all --separately --add_tags
+ S = save --all
+ g = reply --all
+ f = forward
+ p = print --add_tags
+ n = editnew
+ s = save
+ r = reply
+ | = prompt 'pipeto '
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec
new file mode 100644
index 00000000..20401ffb
--- /dev/null
+++ b/alot/defaults/alot.rc.spec
@@ -0,0 +1,107 @@
+# ask for subject when compose
+ask_subject = boolean(default=True)
+
+# confirm exit
+bug_on_exit = boolean(default=False)
+
+# offset of next focussed buffer if the current one gets closed
+bufferclose_focus_offset = integer(default=-1)
+
+# number of colours your terminal supports
+colourmode = option(1, 16, 256, default=256)
+
+# number of spaces used to replace tab characters
+tabwidth = integer(default=8)
+
+# templates directory that contains your message templates.
+# It will be used if you give `compose --template` a filename without a path prefix.
+template_dir = string(default='$XDG_CONFIG_HOME/alot/templates')
+
+# fill threadline with message content
+display_content_in_threadline = boolean(default=False)
+
+# headers that get displayed by default
+displayed_headers = string_list(default=list('From','To','Cc','Bcc','Subject'))
+
+# headers that are hidden in envelope buffers by default
+envelope_headers_blacklist = string_list(default=list('In-Reply-To','References'))
+
+# set terminal command used for spawning shell commands
+terminal_cmd = string(default='x-terminal-emulator -e')
+
+####################
+# EDITOR settings #
+####################
+# editor command
+# if unset, alot will first try the EDITOR env variable, then /usr/bin/editor
+#editor_cmd = string(default="/usr/bin/vim -f -c 'set filetype=mail' +")
+
+# file encoding used by your editor
+editor_writes_encoding = string(default='UTF-8')
+
+# use terminal_command to spawn a new terminal for the editor?
+editor_spawn = boolean(default=False)
+
+# call editor in separate thread.
+# in case your editor doesn't run in the same window as alot, setting true here
+# will make alot non-blocking during edits
+editor_in_thread = boolean(default=False)
+
+
+# Which header fields should be editable in your editor
+# used are those that match the whitelist and don't macht the blacklist.
+# in both cases '*' may be used to indicate all fields.
+edit_headers_whitelist = string_list(default=list('*'))
+edit_headers_blacklist = string_list(default=list('Content-Type','MIME-Version','References','In-Reply-To'))
+
+
+# timeout in secs after a failed attempt to flush is repeated
+flush_retry_timeout = integer(default=5)
+
+# where to look up hooks
+hooksfile = string(default='~/.config/alot/hooks.py')
+
+# time in secs to display status messages
+notify_timeout = integer(default=2)
+
+# display statusline?
+show_statusbar = boolean(default=True)
+
+# timestamp format in strftime format syntax:
+# http://docs.python.org/library/datetime.html#strftime-strptime-behavior
+timestamp_format = string(default=None)
+
+# max length of authors line in thread widgets
+authors_maxlength = integer(default=30)
+
+# how to print messages:
+# this specifies a shellcommand used pro printing.
+# threads/messages are piped to this as plaintext.
+# muttprint/a2ps works nicely
+print_cmd = string(default=None)
+
+# initial command when none is given as argument:
+initial_command = string(default='search tag:inbox AND NOT tag:killed')
+
+# default sort order of results in a search
+search_threads_sort_order = option('oldest_first', 'newest_first', 'message_id', 'unsorted', default='newest_first')
+
+# in case more than one account has an address book:
+# Set this to True to make tabcompletion for recipients during compose only
+# look in the abook of the account matching the sender address
+complete_matching_abook_only = boolean(default=False)
+
+# shut down when the last buffer gets closed
+quit_on_last_bclose = boolean(default=False)
+
+# value of the User-Agent header used for outgoing mails.
+# setting this to the empty string will cause alot to omit the header all together.
+# The string '$VERSION' will be replaced by the version string of the running instance.
+user_agent = string(default='alot/$VERSION')
+
+# Keybindings
+[maps]
+ # one for each mode
+ [[__many__]]
+ # key = commandline string
+ __many__ = string(default=None)
diff --git a/alot/defaults/notmuch.rc.spec b/alot/defaults/notmuch.rc.spec
new file mode 100644
index 00000000..fb94ffd0
--- /dev/null
+++ b/alot/defaults/notmuch.rc.spec
@@ -0,0 +1,3 @@
+[maildir]
+synchronize_flags = boolean(default=False)
+
diff --git a/alot/defaults/theme.rc b/alot/defaults/theme.rc
new file mode 100644
index 00000000..f988ebec
--- /dev/null
+++ b/alot/defaults/theme.rc
@@ -0,0 +1,329 @@
+[1c]
+[[global]]
+ [[[footer]]]
+ fg = 'standout'
+ [[[notify_error]]]
+ fg = 'standout'
+ [[[notify_normal]]]
+ fg = 'default'
+ [[[prompt]]]
+ fg = 'default'
+ [[[tag]]]
+ fg = 'default'
+ [[[tag_focus]]]
+ fg = 'standout, bold'
+ [[[tag_draft]]]
+ fg = 'standout'
+
+[[help]]
+ [[[text]]]
+ fg = 'default'
+ [[[section]]]
+ fg = 'underline'
+ [[[title]]]
+ fg = 'standout'
+
+[[bufferlist]]
+ [[[focus]]]
+ fg = 'standout'
+ [[[results_even]]]
+ fg = 'default'
+ [[[results_odd]]]
+ fg = 'default'
+
+[[search]]
+ [[[thread]]]
+ fg = 'default'
+ [[[thread_authors]]]
+ fg = 'default,underline'
+ [[[thread_authors_focus]]]
+ fg = 'standout'
+ [[[thread_content]]]
+ fg = 'default'
+ [[[thread_content_focus]]]
+ fg = 'standout'
+ [[[thread_date]]]
+ fg = 'default'
+ [[[thread_date_focus]]]
+ fg = 'standout'
+ [[[thread_focus]]]
+ fg = 'standout'
+ [[[thread_mailcount]]]
+ fg = 'default'
+ [[[thread_mailcount_focus]]]
+ fg = 'standout'
+ [[[thread_subject]]]
+ fg = 'default'
+ [[[thread_subject_isunread]]]
+ fg = 'bold'
+ [[[thread_subject_isflagged]]]
+ fg = 'underline'
+ [[[thread_subject_focus]]]
+ fg = 'standout'
+ [[[thread_subject_isunread_focus]]]
+ fg = 'standout,bold'
+ [[[thread_subject_isflagged_focus]]]
+ fg = 'standout,underline'
+ [[[thread_tags]]]
+ fg = 'bold'
+ [[[thread_tags_focus]]]
+ fg = 'standout'
+
+[[thread]]
+ [[[attachment]]]
+ fg = 'default'
+ [[[attachment_focus]]]
+ fg = 'underline'
+ [[[body]]]
+ fg = 'default'
+ [[[header]]]
+ fg = 'default'
+ [[[header_key]]]
+ fg = 'default'
+ [[[header_value]]]
+ fg = 'default'
+ [[[summary_even]]]
+ fg = 'default'
+ [[[summary_focus]]]
+ fg = 'standout'
+ [[[summary_odd]]]
+ fg = 'default'
+
+[16c]
+[[global]]
+ [[[footer]]]
+ bg = 'dark blue'
+ fg = 'light green'
+ [[[notify_error]]]
+ bg = 'dark red'
+ fg = 'white'
+ [[[notify_normal]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[prompt]]]
+ bg = 'black'
+ fg = 'light gray'
+ [[[tag]]]
+ bg = 'black'
+ fg = 'brown'
+ [[[tag_focus]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[tag_draft]]]
+ bg = 'light red'
+ fg = 'white'
+
+
+[[help]]
+ [[[text]]]
+ bg = 'dark gray'
+ fg = 'default'
+ [[[section]]]
+ bg = 'dark gray'
+ fg = 'bold,underline'
+ [[[title]]]
+ bg = 'dark blue'
+ fg = 'white'
+[[bufferlist]]
+ [[[focus]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[results_even]]]
+ bg = 'black'
+ fg = 'light gray'
+ [[[results_odd]]]
+ bg = 'black'
+ fg = 'light gray'
+
+
+[[thread]]
+ [[[attachment]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[attachment_focus]]]
+ bg = 'light green'
+ fg = 'light gray'
+ [[[body]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[header]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_key]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_value]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[summary_even]]]
+ bg = 'light blue'
+ fg = 'white'
+ [[[summary_focus]]]
+ bg = 'dark cyan'
+ fg = 'white'
+ [[[summary_odd]]]
+ bg = 'dark blue'
+ fg = 'white'
+
+[[search]]
+ [[[thread_authors]]]
+ bg = 'default'
+ fg = 'dark green'
+ [[[thread_authors_focus]]]
+ bg = 'dark gray'
+ fg = 'dark green,bold'
+ [[[thread]]]
+ bg = 'default'
+ fg = 'default'
+ [[[thread_content]]]
+ bg = 'default'
+ fg = 'dark gray'
+ [[[thread_content_focus]]]
+ bg = 'dark gray'
+ fg = 'black'
+ [[[thread_date]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[thread_date_focus]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[thread_focus]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[thread_mailcount]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[thread_mailcount_focus]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[thread_subject]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[thread_subject_focus]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[thread_tags]]]
+ bg = 'default'
+ fg = 'brown'
+ [[[thread_tags_focus]]]
+ bg = 'dark gray'
+ fg = 'yellow,bold'
+[256c]
+
+[[global]]
+ # attributes used in all modi
+ [[[footer]]]
+ bg = '#006'
+ fg = 'white'
+ [[[notify_error]]]
+ bg = 'dark red'
+ fg = 'white'
+ [[[notify_normal]]]
+ bg = '#68a'
+ fg = 'light gray'
+ [[[prompt]]]
+ bg = 'g10'
+ fg = 'light gray'
+ [[[tag]]]
+ bg = 'default'
+ fg = 'brown'
+ [[[tag_focus]]]
+ bg = '#68a'
+ fg = '#ffa'
+
+
+[[help]]
+ # formating of the `help bindings` overlay
+ [[[text]]]
+ bg = 'g35'
+ fg = 'default'
+ [[[section]]]
+ bg = 'g35'
+ fg = 'bold,underline'
+ [[[title]]]
+ bg = 'g35'
+ fg = 'white,bold,underline'
+
+# mode specific attributes
+[[bufferlist]]
+ [[[focus]]]
+ bg = '#68a'
+ fg = '#ffa'
+ [[[results_even]]]
+ bg = 'g3'
+ fg = 'default'
+ [[[results_odd]]]
+ bg = 'default'
+ fg = 'default'
+
+[[search]]
+ [[[thread_authors]]]
+ bg = 'default'
+ fg = '#6d6'
+ [[[thread_authors_focus]]]
+ bg = '#68a'
+ fg = '#8f6'
+ [[[thread_content]]]
+ bg = 'default'
+ fg = '#866'
+ [[[thread_content_focus]]]
+ bg = '#68a'
+ fg = '#866'
+ [[[thread_date]]]
+ bg = 'default'
+ fg = 'g58'
+ [[[thread_date_focus]]]
+ bg = '#68a'
+ fg = 'g89'
+ [[[thread_focus]]]
+ bg = '#68a'
+ fg = 'white'
+ [[[thread_mailcount]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[thread_mailcount_focus]]]
+ bg = '#68a'
+ fg = 'g89'
+ [[[thread_subject]]]
+ bg = 'default'
+ fg = 'g58'
+ [[[thread_subject_focus]]]
+ bg = '#68a'
+ fg = 'g89'
+ [[[thread_tags]]]
+ bg = 'default'
+ fg = '#a86'
+ [[[thread_tags_focus]]]
+ bg = '#68a'
+ fg = '#ff8'
+
+[[thread]]
+ [[[attachment]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[attachment_focus]]]
+ bg = 'light green'
+ fg = 'light gray'
+ [[[body]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[header]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_key]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_value]]]
+ bg = 'dark gray'
+ fg = 'light gray'
+ [[[summary_even]]]
+ bg = '#068'
+ fg = 'white'
+ [[[summary_focus]]]
+ bg = 'g58'
+ fg = '#ff8'
+ [[[summary_odd]]]
+ bg = '#006'
+ fg = 'white'
+
+
diff --git a/alot/defaults/theme.rc.spec b/alot/defaults/theme.rc.spec
new file mode 100644
index 00000000..ef07aeb3
--- /dev/null
+++ b/alot/defaults/theme.rc.spec
@@ -0,0 +1,14 @@
+[1c]
+[[__many__]]
+ [[[__many__]]]
+ fg = string(default='default')
+[16c]
+[[__many__]]
+ [[[__many__]]]
+ bg = string(default='default')
+ fg = string(default='default')
+[256c]
+[[__many__]]
+ [[[__many__]]]
+ bg = string(default=None)
+ fg = string(default=None)
diff --git a/setup.py b/setup.py
index 62110fdd..2fef3729 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,14 @@ setup(name='alot',
url=alot.__url__,
license=alot.__copyright__,
packages=['alot', 'alot.commands'],
- package_data={'alot': ['defaults/alot.rc', 'defaults/notmuch.rc']},
+ package_data={'alot': [
+ 'defaults/alot.rc',
+ 'defaults/alot.rc.spec',
+ 'defaults/notmuch.rc',
+ 'defaults/notmuch.rc.spec',
+ 'defaults/theme.rc',
+ 'defaults/theme.rc.spec',
+ ]},
scripts=['bin/alot'],
requires=[
'notmuch (>=0.9)',