3 Micro stores all of the user configuration in its configuration directory.
5 Micro uses the `$XDG_CONFIG_HOME/micro` as the configuration directory. As per
6 the XDG spec, if `$XDG_CONFIG_HOME` is not set, `~/.config/micro` is used as
9 Here are the options that you can set:
11 * `colorscheme`: loads the colorscheme stored in
12 $(configDir)/colorschemes/`option`.micro
14 default value: `default`
15 Note that the default colorschemes (default, solarized, and solarized-tc)
16 are not located in configDir, because they are embedded in the micro binary
18 The colorscheme can be selected from all the files in the
19 ~/.config/micro/colorschemes/ directory. Micro comes by default with three
22 * default: this is the default colorscheme.
24 * solarized: this is the solarized colorscheme (used in the screenshot).
25 You should have the solarized color palette in your terminal to use it.
27 * solarized-tc: this is the solarized colorscheme for true color, just
28 make sure your terminal supports true color before using it and that the
29 MICRO_TRUECOLOR environment variable is set to 1 before starting micro.
31 * monokai-tc: this is the monokai colorscheme. It requires true color to
32 look perfect, but the 256 color approximation looks good as well.
34 * atom-dark-tc: this colorscheme is based off of Atom's "dark" colorscheme.
35 It requires true color to look good.
38 * `tabsize`: sets the tab size to `option`
42 * `indentchar`: sets the indentation character
46 * `ignorecase`: perform case-insensitive searches
50 * `syntax`: turns syntax on or off
54 * `tabstospaces`: use spaces instead of tabs
58 * `autoindent`: when creating a new line use the same indentation as the
63 * `cursorline`: highlight the line that the cursor is on in a different color
64 (the color is defined by the colorscheme you are using)
68 * `ruler`: display line numbers
72 * `statusline`: display the status line at the bottom of the screen
76 * `savecursor`: remember where the cursor was last time the file was opened and
77 put it there when you open the file again
81 * `saveundo`: when this option is on, undo is saved even after you close a file
82 so if you close and reopen a file, you can keep undoing
86 * `scrollmargin`: amount of lines you would like to see above and below the cursor
90 * `scrollspeed`: amount of lines to scroll for one scroll event
96 Default plugin options:
98 * `linter`: lint languages on save (supported languages are C, D, Go, Java,
99 Javascript, Lua). Provided by the `linter` plugin.
103 * `autoclose`: Automatically close `{}` `()` `[]` `""` `''`. Provided by the autoclose plugin
107 * `goimports`: Run goimports on save. Provided by the `go` plugin.
111 * `gofmt`: Run gofmt on save. Provided by the `go` plugin.
115 Any option you set in the editor will be saved to the file
116 ~/.config/micro/settings.json so, in effect, your configuration file will be
117 created for you. If you'd like to take your configuration with you to another
118 machine, simply copy the settings.json to the other machine.