From 591cb83da4603b8ac8c1dd868f701981756be9e7 Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 09:39:08 -0600 Subject: [PATCH] Rename 'crystal-new-line-inserted' to 'crystal-indent-on-new-line' This gives the function clear responsibility, whereas the naming before was unclear --- rc/filetype/crystal.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 5a49c39b..0d5d1ca1 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -17,7 +17,7 @@ hook global WinSetOption filetype=crystal %{ add-highlighter window/crystal ref crystal evaluate-commands set-option window static_words %opt{crystal_keywords} %opt{crystal_attributes} %opt{crystal_objects} - hook window InsertChar '\n' -group crystal-indent crystal-new-line-inserted + hook window InsertChar '\n' -group crystal-indent crystal-indent-on-new-line hook -always -once window WinSetOption filetype=.* %{ remove-highlighter window/crystal @@ -175,7 +175,7 @@ evaluate-commands %sh[ # Commands # ‾‾‾‾‾‾‾‾ -define-command -hidden crystal-new-line-inserted %{ +define-command -hidden crystal-indent-on-new-line %{ # Copy previous line indent try %{ execute-keys -draft 'K'