From b929748f8e65679b3f960ce3465e3f44de7c273c Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 30 Apr 2022 11:22:47 +0200 Subject: [PATCH] rc filetype: fix double space in trim-indent hooks --- rc/filetype/cabal.kak | 2 +- rc/filetype/clojure.kak | 2 +- rc/filetype/coffee.kak | 2 +- rc/filetype/css.kak | 2 +- rc/filetype/cucumber.kak | 2 +- rc/filetype/elixir.kak | 2 +- rc/filetype/elm.kak | 2 +- rc/filetype/graphql.kak | 2 +- rc/filetype/haml.kak | 2 +- rc/filetype/haskell.kak | 2 +- rc/filetype/janet.kak | 2 +- rc/filetype/json.kak | 2 +- rc/filetype/lisp.kak | 2 +- rc/filetype/moon.kak | 2 +- rc/filetype/nix.kak | 2 +- rc/filetype/php.kak | 2 +- rc/filetype/pug.kak | 2 +- rc/filetype/purescript.kak | 2 +- rc/filetype/ragel.kak | 2 +- rc/filetype/sass.kak | 2 +- rc/filetype/scala.kak | 2 +- rc/filetype/scheme.kak | 2 +- rc/filetype/scss.kak | 2 +- rc/filetype/twig.kak | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/rc/filetype/cabal.kak b/rc/filetype/cabal.kak index 957b397b..42e56888 100644 --- a/rc/filetype/cabal.kak +++ b/rc/filetype/cabal.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](cabal) %{ hook global WinSetOption filetype=cabal %[ require-module cabal - hook window ModeChange pop:insert:.* -group cabal-trim-indent cabal-trim-indent + hook window ModeChange pop:insert:.* -group cabal-trim-indent cabal-trim-indent hook window InsertChar \n -group cabal-insert cabal-insert-on-new-line hook window InsertChar \n -group cabal-indent cabal-indent-on-new-line hook window InsertChar \{ -group cabal-indent cabal-indent-on-opening-curly-brace diff --git a/rc/filetype/clojure.kak b/rc/filetype/clojure.kak index 901cb8b3..4152fb17 100644 --- a/rc/filetype/clojure.kak +++ b/rc/filetype/clojure.kak @@ -181,7 +181,7 @@ EOF define-command -hidden clojure-configure-window %{ set-option window static_words %opt{clojure_static_words} - hook window ModeChange pop:insert:.* -group clojure-trim-indent clojure-trim-indent + hook window ModeChange pop:insert:.* -group clojure-trim-indent clojure-trim-indent hook window InsertChar \n -group clojure-indent clojure-indent-on-new-line set-option buffer extra_word_chars '_' . / * ? + - < > ! : "'" diff --git a/rc/filetype/coffee.kak b/rc/filetype/coffee.kak index 7c695edf..58811a05 100644 --- a/rc/filetype/coffee.kak +++ b/rc/filetype/coffee.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](coffee) %{ hook global WinSetOption filetype=coffee %{ require-module coffee - hook window ModeChange pop:insert:.* -group coffee-trim-indent coffee-trim-indent + hook window ModeChange pop:insert:.* -group coffee-trim-indent coffee-trim-indent hook window InsertChar \n -group coffee-insert coffee-insert-on-new-line hook window InsertChar \n -group coffee-indent coffee-indent-on-new-line diff --git a/rc/filetype/css.kak b/rc/filetype/css.kak index 6e90f4c2..d80949bb 100644 --- a/rc/filetype/css.kak +++ b/rc/filetype/css.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](css) %{ hook global WinSetOption filetype=css %[ require-module css - hook window ModeChange pop:insert:.* -group css-trim-indent css-trim-indent + hook window ModeChange pop:insert:.* -group css-trim-indent css-trim-indent hook window InsertChar \n -group css-insert css-insert-on-new-line hook window InsertChar \n -group css-indent css-indent-on-new-line hook window InsertChar \} -group css-indent css-indent-on-closing-curly-brace diff --git a/rc/filetype/cucumber.kak b/rc/filetype/cucumber.kak index 25280f86..335d4933 100644 --- a/rc/filetype/cucumber.kak +++ b/rc/filetype/cucumber.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](feature|story) %{ hook global WinSetOption filetype=cucumber %{ require-module cucumber - hook window ModeChange pop:insert:.* -group cucumber-trim-indent cucumber-trim-indent + hook window ModeChange pop:insert:.* -group cucumber-trim-indent cucumber-trim-indent hook window InsertChar \n -group cucumber-insert cucumber-insert-on-new-line hook window InsertChar \n -group cucumber-indent cucumber-indent-on-new-line diff --git a/rc/filetype/elixir.kak b/rc/filetype/elixir.kak index 0c40aeb9..5e099df2 100644 --- a/rc/filetype/elixir.kak +++ b/rc/filetype/elixir.kak @@ -18,7 +18,7 @@ hook global BufCreate .*[.]html[.]l?eex %{ hook global WinSetOption filetype=elixir %{ require-module elixir - hook window ModeChange pop:insert:.* -group elixir-trim-indent elixir-trim-indent + hook window ModeChange pop:insert:.* -group elixir-trim-indent elixir-trim-indent hook window InsertChar \n -group elixir-indent elixir-indent-on-new-line hook window InsertChar \n -group elixir-insert elixir-insert-on-new-line diff --git a/rc/filetype/elm.kak b/rc/filetype/elm.kak index 2daf8b23..d5a76fcf 100644 --- a/rc/filetype/elm.kak +++ b/rc/filetype/elm.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](elm) %{ hook global WinSetOption filetype=elm %{ require-module elm - hook window ModeChange pop:insert:.* -group elm-trim-indent elm-trim-indent + hook window ModeChange pop:insert:.* -group elm-trim-indent elm-trim-indent hook window InsertChar \n -group elm-insert elm-insert-on-new-line hook window InsertChar \n -group elm-indent elm-indent-on-new-line diff --git a/rc/filetype/graphql.kak b/rc/filetype/graphql.kak index 7ac16c07..83bfa811 100644 --- a/rc/filetype/graphql.kak +++ b/rc/filetype/graphql.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](graphqls?) %{ hook global WinSetOption filetype=graphql %{ require-module graphql - hook window ModeChange pop:insert:.* -group graphql-trim-indent graphql-trim-indent + hook window ModeChange pop:insert:.* -group graphql-trim-indent graphql-trim-indent hook window InsertChar .* -group graphql-indent graphql-indent-on-char hook window InsertChar \n -group graphql-indent graphql-indent-on-new-line diff --git a/rc/filetype/haml.kak b/rc/filetype/haml.kak index cef0f56d..e7bdb43d 100644 --- a/rc/filetype/haml.kak +++ b/rc/filetype/haml.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](haml) %{ hook global WinSetOption filetype=haml %{ require-module haml - hook window ModeChange pop:insert:.* -group haml-trim-indent haml-trim-indent + hook window ModeChange pop:insert:.* -group haml-trim-indent haml-trim-indent hook window InsertChar \n -group haml-insert haml-insert-on-new-line hook window InsertChar \n -group haml-indent haml-indent-on-new-line diff --git a/rc/filetype/haskell.kak b/rc/filetype/haskell.kak index e3f29384..c3711a3f 100644 --- a/rc/filetype/haskell.kak +++ b/rc/filetype/haskell.kak @@ -15,7 +15,7 @@ hook global WinSetOption filetype=haskell %{ require-module haskell set-option buffer extra_word_chars '_' "'" - hook window ModeChange pop:insert:.* -group haskell-trim-indent haskell-trim-indent + hook window ModeChange pop:insert:.* -group haskell-trim-indent haskell-trim-indent hook window InsertChar \n -group haskell-insert haskell-insert-on-new-line hook window InsertChar \n -group haskell-indent haskell-indent-on-new-line diff --git a/rc/filetype/janet.kak b/rc/filetype/janet.kak index 12db77b3..2ce53936 100644 --- a/rc/filetype/janet.kak +++ b/rc/filetype/janet.kak @@ -12,7 +12,7 @@ hook global BufCreate .*[.](janet|jdn) %{ hook global WinSetOption filetype=janet %{ require-module janet - hook window ModeChange pop:insert:.* -group janet-trim-indent janet-trim-indent + hook window ModeChange pop:insert:.* -group janet-trim-indent janet-trim-indent hook window InsertChar \n -group janet-indent janet-indent-on-new-line set-option buffer extra_word_chars ! @ $ '%' ^ & * - _ + = : < > . ? diff --git a/rc/filetype/json.kak b/rc/filetype/json.kak index 67f0506c..d337fc39 100644 --- a/rc/filetype/json.kak +++ b/rc/filetype/json.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](json) %{ hook global WinSetOption filetype=json %{ require-module json - hook window ModeChange pop:insert:.* -group json-trim-indent json-trim-indent + hook window ModeChange pop:insert:.* -group json-trim-indent json-trim-indent hook window InsertChar .* -group json-indent json-indent-on-char hook window InsertChar \n -group json-indent json-indent-on-new-line diff --git a/rc/filetype/lisp.kak b/rc/filetype/lisp.kak index 9fc49ec0..2c3594a0 100644 --- a/rc/filetype/lisp.kak +++ b/rc/filetype/lisp.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](lisp) %{ hook global WinSetOption filetype=lisp %{ require-module lisp - hook window ModeChange pop:insert:.* -group lisp-trim-indent lisp-trim-indent + hook window ModeChange pop:insert:.* -group lisp-trim-indent lisp-trim-indent hook window InsertChar \n -group lisp-indent lisp-indent-on-new-line set-option buffer extra_word_chars '_' '+' '-' '*' '/' '@' '$' '%' '^' '&' '_' '=' '<' '>' '~' '.' diff --git a/rc/filetype/moon.kak b/rc/filetype/moon.kak index ce68f8d0..6f5137ee 100644 --- a/rc/filetype/moon.kak +++ b/rc/filetype/moon.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](moon) %{ hook global WinSetOption filetype=moon %{ require-module moon - hook window ModeChange pop:insert:.* -group moon-trim-indent moon-trim-indent + hook window ModeChange pop:insert:.* -group moon-trim-indent moon-trim-indent hook window InsertChar .* -group moon-indent moon-indent-on-char hook window InsertChar \n -group moon-insert moon-insert-on-new-line hook window InsertChar \n -group moon-indent moon-indent-on-new-line diff --git a/rc/filetype/nix.kak b/rc/filetype/nix.kak index 6cc12db6..3eecc4d9 100644 --- a/rc/filetype/nix.kak +++ b/rc/filetype/nix.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](nix) %{ hook global WinSetOption filetype=nix %{ require-module nix - hook window ModeChange pop:insert:.* -group nix-trim-indent nix-trim-indent + hook window ModeChange pop:insert:.* -group nix-trim-indent nix-trim-indent hook window InsertChar .* -group nix-indent nix-indent-on-char hook window InsertChar \n -group nix-insert nix-insert-on-new-line hook window InsertChar \n -group nix-indent nix-indent-on-new-line diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak index ce5f4352..560daa01 100644 --- a/rc/filetype/php.kak +++ b/rc/filetype/php.kak @@ -11,7 +11,7 @@ hook global BufCreate .*[.](phpt?) %{ hook global WinSetOption filetype=php %{ require-module php - hook window ModeChange pop:insert:.* -group php-trim-indent php-trim-indent + hook window ModeChange pop:insert:.* -group php-trim-indent php-trim-indent hook window InsertChar .* -group php-indent php-indent-on-char hook window InsertChar \n -group php-insert php-insert-on-new-line hook window InsertChar \n -group php-indent php-indent-on-new-line diff --git a/rc/filetype/pug.kak b/rc/filetype/pug.kak index 42f5611c..9bb83d72 100644 --- a/rc/filetype/pug.kak +++ b/rc/filetype/pug.kak @@ -18,7 +18,7 @@ hook global BufCreate .*[.](pug|jade) %{ hook global WinSetOption filetype=pug %{ require-module pug - hook window ModeChange pop:insert:.* -group pug-trim-indent pug-trim-indent + hook window ModeChange pop:insert:.* -group pug-trim-indent pug-trim-indent hook window InsertChar \n -group pug-indent pug-indent-on-new-line hook -once -always window WinSetOption filetype=.* %{ remove-hooks window pug-.+ } diff --git a/rc/filetype/purescript.kak b/rc/filetype/purescript.kak index b187d4f6..12b26283 100644 --- a/rc/filetype/purescript.kak +++ b/rc/filetype/purescript.kak @@ -17,7 +17,7 @@ hook global WinSetOption filetype=purescript %{ require-module purescript set-option buffer extra_word_chars '_' "'" - hook window ModeChange pop:insert:.* -group purescript-trim-indent purescript-trim-indent + hook window ModeChange pop:insert:.* -group purescript-trim-indent purescript-trim-indent hook window InsertChar \n -group purescript-insert purescript-insert-on-new-line hook window InsertChar \n -group purescript-indent purescript-indent-on-new-line diff --git a/rc/filetype/ragel.kak b/rc/filetype/ragel.kak index b3f9230d..f873d63c 100644 --- a/rc/filetype/ragel.kak +++ b/rc/filetype/ragel.kak @@ -16,7 +16,7 @@ hook global BufCreate .*[.](ragel|rl) %{ hook global WinSetOption filetype=ragel %{ require-module ragel - hook window ModeChange pop:insert:.* -group ragel-trim-indent ragel-trim-indent + hook window ModeChange pop:insert:.* -group ragel-trim-indent ragel-trim-indent hook window InsertChar .* -group ragel-indent ragel-indent-on-char hook window InsertChar \n -group ragel-insert ragel-insert-on-new-line hook window InsertChar \n -group ragel-indent ragel-indent-on-new-line diff --git a/rc/filetype/sass.kak b/rc/filetype/sass.kak index d315aff7..9c5869b1 100644 --- a/rc/filetype/sass.kak +++ b/rc/filetype/sass.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](sass) %{ hook global WinSetOption filetype=sass %< require-module sass - hook window ModeChange pop:insert:.* -group sass-trim-indent sass-trim-indent + hook window ModeChange pop:insert:.* -group sass-trim-indent sass-trim-indent hook window InsertChar \} -group sass-indent sass-indent-on-closing-brace hook window InsertChar \n -group sass-insert sass-insert-on-new-line hook window InsertChar \n -group sass-indent sass-indent-on-new-line diff --git a/rc/filetype/scala.kak b/rc/filetype/scala.kak index ca167c9e..626058d0 100644 --- a/rc/filetype/scala.kak +++ b/rc/filetype/scala.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](scala) %{ hook global WinSetOption filetype=scala %[ require-module scala - hook window ModeChange pop:insert:.* -group scala-trim-indent scala-trim-indent + hook window ModeChange pop:insert:.* -group scala-trim-indent scala-trim-indent hook window InsertChar \n -group scala-insert scala-insert-on-new-line hook window InsertChar \n -group scala-indent scala-indent-on-new-line hook window InsertChar \} -group scala-indent scala-indent-on-closing-curly-brace diff --git a/rc/filetype/scheme.kak b/rc/filetype/scheme.kak index 199da4e0..6c646279 100644 --- a/rc/filetype/scheme.kak +++ b/rc/filetype/scheme.kak @@ -17,7 +17,7 @@ hook global WinSetOption filetype=scheme %{ set-option window static_words %opt{scheme_static_words} set-option buffer extra_word_chars '!' '$' '%' '&' '*' '+' '-' '.' '/' ':' '<' '=' '>' '?' '@' '^' '_' '~' - hook window ModeChange pop:insert:.* -group scheme-trim-indent lisp-trim-indent + hook window ModeChange pop:insert:.* -group scheme-trim-indent lisp-trim-indent hook window InsertChar \n -group scheme-indent lisp-indent-on-new-line hook -once -always window WinSetOption filetype=.* %{ remove-hooks window scheme-.+ } diff --git a/rc/filetype/scss.kak b/rc/filetype/scss.kak index 744691b0..a4ac7b07 100644 --- a/rc/filetype/scss.kak +++ b/rc/filetype/scss.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](scss) %{ hook global WinSetOption filetype=scss %[ require-module scss - hook window ModeChange pop:insert:.* -group scss-trim-indent scss-trim-indent + hook window ModeChange pop:insert:.* -group scss-trim-indent scss-trim-indent hook window InsertChar \n -group scss-indent scss-insert-on-new-line hook window InsertChar \n -group scss-indent scss-indent-on-new-line hook window InsertChar \} -group scss-indent scss-indent-on-closing-curly-brace diff --git a/rc/filetype/twig.kak b/rc/filetype/twig.kak index fecd434a..6fcfeeb4 100644 --- a/rc/filetype/twig.kak +++ b/rc/filetype/twig.kak @@ -14,7 +14,7 @@ hook global BufCreate .*[.](twig) %{ hook global WinSetOption filetype=twig %[ require-module twig - hook window ModeChange pop:insert:.* -group twig-trim-indent twig-trim-indent + hook window ModeChange pop:insert:.* -group twig-trim-indent twig-trim-indent hook window InsertChar \n -group twig-insert twig-insert-on-new-line hook window InsertChar \n -group twig-indent twig-indent-on-new-line hook window InsertChar '>' -group twig-indent twig-indent-on-greater-than