@@ -140,50 +140,33 @@ You can use the `--style` option to control the appearance of `bat`s output.
140140You can use `--style=numbers,changes`, for example, to show only Git changes
141141and line numbers but no grid and no file header.
142142
143−### Add new syntaxes and highlighting themes
143+### Adding new syntaxes / language definitions
144144
145145`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/)
146146library for syntax highlighting. `syntect` can read any
147147[Sublime Text `.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)
148−and theme.
148+and theme. To add new syntax definitions, do the following.
149149
150−To build your own language-set and theme, follow these steps:
151−
152−Create a folder with a syntax highlighting theme:
150+Create a folder with syntax definition files:
153151
154152```bash
155153BAT_CONFIG_DIR="$(bat cache --config-dir)"
156154
157−mkdir -p "$BAT_CONFIG_DIR/themes"
158−cd "$BAT_CONFIG_DIR/themes"
159−
160−# Download a theme, for example:
161−git clone https://github.com/greggb/sublime-snazzy
162−
163−# Create a link for the default theme
164−ln -sf "sublime-snazzy/Sublime Snazzy.tmTheme" Default.tmTheme
165−```
166−
167−Create a folder with language definition files:
168−
169−```bash
170155mkdir -p "$BAT_CONFIG_DIR/syntaxes"
171156cd "$BAT_CONFIG_DIR/syntaxes"
172157
173−# Download some language definition files, for example:
174−git clone https://github.com/sublimehq/Packages
175−git clone https://github.com/danro/LESS-sublime
158+# Put new '.sublime-syntax' language definition files
159+# in this folder (or its subdirectories), for example:
160+git clone https://github.com/tellnobody1/sublime-purescript-syntax
176161```
177162
178−Finally, use the following command to parse all these files into a binary
179−cache:
163+Now use the following command to parse these files into a binary cache:
180164
181165```bash
182166bat cache --init
183167```
184168
185−Use `bat --list-languages` and `bat --list-themes` to check if all languages and themes are
186−available.
169+Finally, use `bat --list-languages` to check if the new languages are available.
187170
188171If you ever want to go back to the default settings, call:
189172
@@ -191,6 +174,32 @@ If you ever want to go back to the default settings, call:
191174bat cache --clear
192175```
193176
177+### Adding new themes
178+
179+This works very similar to how we add new syntax definitions.
180+
181+First, create a folder with the new syntax highlighting themes:
182+```bash
183+BAT_CONFIG_DIR="$(bat cache --config-dir)"
184+
185+mkdir -p "$BAT_CONFIG_DIR/themes"
186+cd "$BAT_CONFIG_DIR/themes"
187+
188+# Download a theme in '.tmTheme' format, for example:
189+git clone https://github.com/greggb/sublime-snazzy
190+
191+# Create a link to specify the new default theme
192+ln -sf "sublime-snazzy/Sublime Snazzy.tmTheme" Default.tmTheme
193+
194+# Update the binary cache
195+bat cache --init
196+```
197+
198+Finally, use `bat --list-themes` to check if the new themes are available.
199+
200+**Note:** Unlike for syntax definitions, adding custom themes currently *removes all default
201+themes*. If you want to go back to the default themes, call `bat cache --clear`.
202+
194203### Using a different pager
195204
196205`bat` uses the pager that is specified in the `PAGER` environment variable. If this variable is not