From d8466f0f39c63eb92dce9c3ad15bc11cc06efa3a Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Wed, 19 Dec 2018 10:03:37 +0100 Subject: [PATCH] c-family.kak: remove redundant -family in hook groups --- rc/core/c-family.kak | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index fe592f19..81c2d3da 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -318,17 +318,17 @@ evaluate-commands %sh{ } hook global WinSetOption filetype=(c|cpp|objc) %[ - hook -group "%val{hook_param_capture_1}-family-indent" window ModeChange insert:.* c-family-trim-autoindent - hook -group "%val{hook_param_capture_1}-family-insert" window InsertChar \n c-family-insert-on-newline - hook -group "%val{hook_param_capture_1}-family-indent" window InsertChar \n c-family-indent-on-newline - hook -group "%val{hook_param_capture_1}-family-indent" window InsertChar \{ c-family-indent-on-opening-curly-brace - hook -group "%val{hook_param_capture_1}-family-indent" window InsertChar \} c-family-indent-on-closing-curly-brace - hook -group "%val{hook_param_capture_1}-family-insert" window InsertChar \} c-family-insert-on-closing-curly-brace + hook -group "%val{hook_param_capture_1}-indent" window InsertChar \n c-family-indent-on-newline + hook -group "%val{hook_param_capture_1}-indent" window InsertChar \{ c-family-indent-on-opening-curly-brace + hook -group "%val{hook_param_capture_1}-indent" window InsertChar \} c-family-indent-on-closing-curly-brace + hook -group "%val{hook_param_capture_1}-trim-indent" window ModeChange insert:.* c-family-trim-autoindent + hook -group "%val{hook_param_capture_1}-insert" window InsertChar \n c-family-insert-on-newline + hook -group "%val{hook_param_capture_1}-insert" window InsertChar \} c-family-insert-on-closing-curly-brace alias window alt "%val{hook_param_capture_1}-alternative-file" hook -once -always window WinSetOption filetype=.* " - remove-hooks window %val{hook_param_capture_1}-family-.+ + remove-hooks window %val{hook_param_capture_1}-.+ unalias window alt %val{hook_param_capture_1}-alternative-file " ]