home/rc/detection
Michael Mogenson 37ded5e400 Check if buffile is path before loading editorconfig settings
Check if buffile is a full path by checking for the beginning
'/' character in editorconfig-load command. This avoids a parsing
error from feeding a *scratch*/*debug*/*grep*/etc. buffer name to the
editorcofig command. Don't clear editorconfig hooks until after checking
for a valid bufffile path. This way, opening the *debug* buffer will
not clear the hooks from a previously parsed .editorconfig file. If
trim_trailing_whitespace is true, print the hook directly from awk. This
removes the need to save a editorcofig_trim_trailing_whitespace option.

Note: Setting the max_line_length requires a window to be created.
Therefore, a global hook to load .editorconfig settings should be:

    hook global WinCreate .* %{editorconfig-load}
2019-08-20 14:55:17 -04:00
..
editorconfig.kak Check if buffile is path before loading editorconfig settings 2019-08-20 14:55:17 -04:00
file.kak file.kak: Dereference symlinks 2019-04-17 12:37:54 +02:00
modeline.kak Add categories in rc/ 2019-03-21 01:06:16 +01:00