felipec / notmuch-vim

Text-based mail user agent in vim using notmuch.
Other
87 stars 34 forks source link

programmable colors #13

Open mturquette opened 9 years ago

mturquette commented 9 years ago

I like my text interfaces to be pretty and, in particular, solarized. While my default vim and terminal emulator configurations do a good job of using the solarized color palette, I would prefer to have more control over how the folder, search and show buffers display their colorized text. In particular I would like to color code threads in the search buffer based on tags (unread, to-me, flagged, etc).

Does vim provide all that I need to do this today or does notmuch-vim need some for this?

ff2000 commented 9 years ago

One solution is to create syntax files in ~/.vim/after/syntax and simply assign new values to the identifiers you want to change. E.g. open ~/.vim/after/syntax/notmuch-folders.vim and put this line there: """ highlight link nmFoldersSearch Comment """ (Default is String) Have a look at the shipped syntax files for possible identifiers.