micro
micro copied to clipboard
Feature request: inline options
It would be great to have support of inline options e.g. using setlocal
command in comment will apply it in current buffer at first file opening:
// this is a normal comment line, but the next one is an inline command:
// setlocal tabsize 2
or, if it would be easier implemented, something like emacs .dir-locals.el: special file with custom options for current dir and its decendants or type of files
e.g. file with name .micro.yaml
:
filetype: json
detect:
filename: "\\.json$"
header: "^\\{$"
options:
- tabsize: 2