Merge remote-tracking branch 'TeddyDD/editorconfig'

This commit is contained in:
Maxime Coste 2018-10-01 11:12:05 +10:00
commit dc7f9a813c

View File

@ -1,6 +1,16 @@
# http://editorconfig.org/#file-format-details # http://editorconfig.org/#file-format-details
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# Detection
# ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*[.](editorconfig) %{
set-option buffer filetype ini
set-option buffer static_words indent_style indent_size tab_width \
end_of_line charset insert_final_newline trim_trailing_whitespace root \
latin1 utf-8 utf-8-bom utf-16be utf-16le lf cr crlf unset space tab
}
declare-option -hidden bool editorconfig_trim_trailing_whitespace false declare-option -hidden bool editorconfig_trim_trailing_whitespace false
define-command editorconfig-load -params ..1 -docstring "editorconfig-load [file]: set formatting behavior according to editorconfig" %{ define-command editorconfig-load -params ..1 -docstring "editorconfig-load [file]: set formatting behavior according to editorconfig" %{