diff --git a/.gitignore b/.gitignore index 5512d81..eace250 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ !LICENSE !bluemood-tc.micro !README.md +!bluemood-tc.lua +!repo.json diff --git a/README.md b/README.md index 4439602..c3d0945 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,23 @@ This is a port of [emacs's Blue Mood theme](https://emacsthemes.com/themes/blue- This theme requires a terminal emulator that supports true color[1](#myfootnote1) and micro's true color mode to be enabled for it to look the intended way (the background color for example appears with a radically different color without true color). To enable true color for micro, write `export MICRO_TRUECOLOR=1` in your shell config file (e.g. .bashrc,.zshrc e.t.c). Keep in mind that this port doesn't correspond 100% to the original emacs theme, due to the differences of micro's theming system in comparison to emacs's theming system. -## Installation +## Installation & Activation -For the moment, only a manual install is available. +### Automatic -### Manual +This theme is available as third-party plugin repository. -Copy the bluemood-tc.micro file to the colorschemes directory: `~/.config/micro/colorschemes` (if the folder doesn't exist, create it) or `~/micro/colorschemes` . +1. Add to your settings.json file (at `~/.config/micro` or `~/micro`), between the pluginrepos brackets, the following: `https://raw.githubusercontent.com/lmintmate/blue-mood-micro/master/repo.json`. The end result should look something like: +`"pluginrepos": [https://raw.githubusercontent.com/lmintmate/blue-mood-micro/master/repo.json],` +2. Start up micro (or restart it if it was open when the settings were modified) +3. Enter the command mode (with CtrlE) and write `plugin install bluemood-tc`. Look at `>help commands` for further plugin management commands (e.g. update, remove e.t.c). +4. To enable the theme write `set colorscheme bluemood-tc` -## Activation +### Manual -1. Start up micro (or restart it if it was open when the file was copied over) -2. Enter the command mode (with CtrlE) -3. Write "set colorscheme bluemood-tc". +1. Copy the bluemood-tc.micro file to the colorschemes directory: `~/.config/micro/colorschemes` (if the folder doesn't exist, create it) or `~/micro/colorschemes` . +2. Start up micro (or restart it if it was open when the file was copied over) +3. Enter the command mode (with CtrlE) and write `set colorscheme bluemood-tc`. ### Tested on... diff --git a/bluemood-tc.lua b/bluemood-tc.lua new file mode 100644 index 0000000..3045635 --- /dev/null +++ b/bluemood-tc.lua @@ -0,0 +1,3 @@ +VERSION = "1.0.0" + +AddRuntimeFile("bluemood-tc", "colorscheme", "bluemood-tc.micro") diff --git a/repo.json b/repo.json new file mode 100644 index 0000000..c04995e --- /dev/null +++ b/repo.json @@ -0,0 +1,14 @@ +[{ + "Name": "bluemood-tc", + "Description": "A port of emacs Blue Mood theme for the micro text editor", + "Tags": ["colorscheme", "colorschemes", "blue", "theme", "themes"], + "Versions": [ + { + "Version": "1.0.0", + "Url": "https://github.com/lmintmate/blue-mood-micro/archive/1.0.0.zip", + "Require": { + "micro": ">=1.1.3" + } + } + ] +}]