git.s-ol.nu alive.kak / 76c6fb8
blink code when evaluating file s-ol 2 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1313
1414 # Commands
1515
16 # attempt to tame the autoreload, not 100% successful
1716 define-command -hidden alive-reload-file %[
18 nop %sh{ sleep 0.01 }
17 add-highlighter window/alive-blink fill default,rgb:ffffff
18 execute-keys <c-l>
19 nop %sh{ sleep 0.1 }
20 remove-highlighter window/alive-blink
1921 edit!
2022 ]
2123
3436 set-option buffer comment_block_end ')'
3537 set-option buffer tabstop 2
3638 set-option buffer indentwidth 2
39 set-option buffer autoreload yes
3740
3841 hook -group alive-hooks window BufWritePost .* alive-reload-file
3942