diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index 6018add0..5d57d2ba 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -23,10 +23,10 @@ hook global BufCreate .*\.m %{ set-option buffer filetype objc } -define-command -hidden c-family-trim-autoindent %[ evaluate-commands -draft -itersel %[ +define-command -hidden c-family-trim-autoindent %{ # remove the line if it's empty when leaving the insert mode - try %[ execute-keys 1s^(\h+)$ d ] -] ] + try %{ execute-keys -draft 1s^(\h+)$ d } +} define-command -hidden c-family-indent-on-newline %< evaluate-commands -draft -itersel %< execute-keys \;