Use remove-hooks regex in rc
This commit is contained in:
parent
7956e893be
commit
425aa56eaf
|
@ -170,6 +170,5 @@ hook global WinSetOption filetype=clojure %[
|
||||||
hook -group clojure-highlight global WinSetOption filetype=(?!clojure).* %{ remove-highlighter window/clojure }
|
hook -group clojure-highlight global WinSetOption filetype=(?!clojure).* %{ remove-highlighter window/clojure }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!clojure).* %{
|
hook global WinSetOption filetype=(?!clojure).* %{
|
||||||
remove-hooks window clojure-indent
|
remove-hooks window clojure-.+
|
||||||
remove-hooks window clojure-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,5 @@ hook global WinSetOption filetype=css %[
|
||||||
hook -group css-highlight global WinSetOption filetype=(?!css).* %{ remove-highlighter window/css }
|
hook -group css-highlight global WinSetOption filetype=(?!css).* %{ remove-highlighter window/css }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!css).* %{
|
hook global WinSetOption filetype=(?!css).* %{
|
||||||
remove-hooks window css-indent
|
remove-hooks window css-.+
|
||||||
remove-hooks window css-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,6 +129,5 @@ hook global WinSetOption filetype=d %{
|
||||||
hook -group d-highlight global WinSetOption filetype=(?!d).* %{ remove-highlighter window/d }
|
hook -group d-highlight global WinSetOption filetype=(?!d).* %{ remove-highlighter window/d }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!d).* %{
|
hook global WinSetOption filetype=(?!d).* %{
|
||||||
remove-hooks window d-hooks
|
remove-hooks window d-.+
|
||||||
remove-hooks window d-indent
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,5 @@ hook global WinSetOption filetype=fish %{
|
||||||
hook -group fish-highlight global WinSetOption filetype=(?!fish).* %{ remove-highlighter window/fish }
|
hook -group fish-highlight global WinSetOption filetype=(?!fish).* %{ remove-highlighter window/fish }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!fish).* %{
|
hook global WinSetOption filetype=(?!fish).* %{
|
||||||
remove-hooks window fish-indent
|
remove-hooks window fish-.+
|
||||||
remove-hooks window fish-insert
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,5 @@ hook global WinSetOption filetype=go %{
|
||||||
hook -group go-highlight global WinSetOption filetype=(?!go).* %{ remove-highlighter window/go }
|
hook -group go-highlight global WinSetOption filetype=(?!go).* %{ remove-highlighter window/go }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!go).* %{
|
hook global WinSetOption filetype=(?!go).* %{
|
||||||
remove-hooks window go-hooks
|
remove-hooks window go-.+
|
||||||
remove-hooks window go-indent
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,6 +102,5 @@ hook global WinSetOption filetype=haskell %{
|
||||||
hook -group haskell-highlight global WinSetOption filetype=(?!haskell).* %{ remove-highlighter window/haskell }
|
hook -group haskell-highlight global WinSetOption filetype=(?!haskell).* %{ remove-highlighter window/haskell }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!haskell).* %{
|
hook global WinSetOption filetype=(?!haskell).* %{
|
||||||
remove-hooks window haskell-indent
|
remove-hooks window haskell-.+
|
||||||
remove-hooks window haskell-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,5 @@ hook global WinSetOption filetype=(?:html|xml) %{
|
||||||
hook -group html-highlight global WinSetOption filetype=(?!html)(?!xml).* %{ remove-highlighter window/html }
|
hook -group html-highlight global WinSetOption filetype=(?!html)(?!xml).* %{ remove-highlighter window/html }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!html)(?!xml).* %{
|
hook global WinSetOption filetype=(?!html)(?!xml).* %{
|
||||||
remove-hooks window html-indent
|
remove-hooks window html-.+
|
||||||
remove-hooks window html-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,7 @@ hook global WinSetOption filetype=java %{
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!java).* %{
|
hook global WinSetOption filetype=(?!java).* %{
|
||||||
remove-hooks window java-hooks
|
remove-hooks window java-.+
|
||||||
remove-hooks window java-indent
|
|
||||||
}
|
}
|
||||||
hook -group java-highlight global WinSetOption filetype=java %{ add-highlighter window/java ref java }
|
hook -group java-highlight global WinSetOption filetype=java %{ add-highlighter window/java ref java }
|
||||||
hook -group java-highlight global WinSetOption filetype=(?!java).* %{ remove-highlighter window/java }
|
hook -group java-highlight global WinSetOption filetype=(?!java).* %{ remove-highlighter window/java }
|
||||||
|
|
|
@ -57,6 +57,5 @@ hook global WinSetOption filetype=json %{
|
||||||
hook -group json-highlight global WinSetOption filetype=(?!json).* %{ remove-highlighter window/json }
|
hook -group json-highlight global WinSetOption filetype=(?!json).* %{ remove-highlighter window/json }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!json).* %{
|
hook global WinSetOption filetype=(?!json).* %{
|
||||||
remove-hooks window json-indent
|
remove-hooks window json-.+
|
||||||
remove-hooks window json-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,5 @@ hook global WinSetOption filetype=lisp %{
|
||||||
hook -group lisp-highlight global WinSetOption filetype=(?!lisp).* %{ remove-highlighter window/lisp }
|
hook -group lisp-highlight global WinSetOption filetype=(?!lisp).* %{ remove-highlighter window/lisp }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!lisp).* %{
|
hook global WinSetOption filetype=(?!lisp).* %{
|
||||||
remove-hooks window lisp-indent
|
remove-hooks window lisp-.+
|
||||||
remove-hooks window lisp-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,8 +97,7 @@ hook global WinSetOption filetype=lua %{
|
||||||
hook -group lua-highlight global WinSetOption filetype=(?!lua).* %{ remove-highlighter window/lua }
|
hook -group lua-highlight global WinSetOption filetype=(?!lua).* %{ remove-highlighter window/lua }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!lua).* %{
|
hook global WinSetOption filetype=(?!lua).* %{
|
||||||
remove-hooks window lua-indent
|
remove-hooks window lua-.+
|
||||||
remove-hooks window lua-insert
|
|
||||||
|
|
||||||
unalias window alt lua-alternative-file
|
unalias window alt lua-alternative-file
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,6 +111,5 @@ hook global WinSetOption filetype=perl %{
|
||||||
hook -group perl-highlight global WinSetOption filetype=(?!perl).* %{ remove-highlighter window/perl }
|
hook -group perl-highlight global WinSetOption filetype=(?!perl).* %{ remove-highlighter window/perl }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!perl).* %{
|
hook global WinSetOption filetype=(?!perl).* %{
|
||||||
remove-hooks window perl-hooks
|
remove-hooks window perl-.+
|
||||||
remove-hooks window perl-indent
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,8 +157,7 @@ hook global WinSetOption filetype=ruby %{
|
||||||
hook -group ruby-highlight global WinSetOption filetype=(?!ruby).* %{ remove-highlighter window/ruby }
|
hook -group ruby-highlight global WinSetOption filetype=(?!ruby).* %{ remove-highlighter window/ruby }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!ruby).* %{
|
hook global WinSetOption filetype=(?!ruby).* %{
|
||||||
remove-hooks window ruby-indent
|
remove-hooks window ruby-.+
|
||||||
remove-hooks window ruby-insert
|
|
||||||
|
|
||||||
unalias window alt ruby-alternative-file
|
unalias window alt ruby-alternative-file
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,5 @@ hook global WinSetOption filetype=rust %[
|
||||||
hook -group rust-highlight global WinSetOption filetype=(?!rust).* %{ remove-highlighter window/rust }
|
hook -group rust-highlight global WinSetOption filetype=(?!rust).* %{ remove-highlighter window/rust }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!rust).* %{
|
hook global WinSetOption filetype=(?!rust).* %{
|
||||||
remove-hooks window rust-indent
|
remove-hooks window rust-.+
|
||||||
remove-hooks window rust-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,6 +72,5 @@ hook global WinSetOption filetype=scala %[
|
||||||
hook -group scala-highlight global WinSetOption filetype=(?!scala).* %{ remove-highlighter window/scala }
|
hook -group scala-highlight global WinSetOption filetype=(?!scala).* %{ remove-highlighter window/scala }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!scala).* %{
|
hook global WinSetOption filetype=(?!scala).* %{
|
||||||
remove-hooks window scala-indent
|
remove-hooks window scala-.+
|
||||||
remove-hooks window scala-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,5 @@ hook global WinSetOption filetype=yaml %{
|
||||||
hook -group yaml-highlight global WinSetOption filetype=(?!yaml).* %{ remove-highlighter window/yaml }
|
hook -group yaml-highlight global WinSetOption filetype=(?!yaml).* %{ remove-highlighter window/yaml }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!yaml).* %{
|
hook global WinSetOption filetype=(?!yaml).* %{
|
||||||
remove-hooks window yaml-indent
|
remove-hooks window yaml-.+
|
||||||
remove-hooks window yaml-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,9 +275,7 @@ evaluate-commands %sh{
|
||||||
|
|
||||||
hook global WinSetOption filetype=(c|cpp|objc) %[
|
hook global WinSetOption filetype=(c|cpp|objc) %[
|
||||||
try %{ # we might be switching from one c-family language to another
|
try %{ # we might be switching from one c-family language to another
|
||||||
remove-hooks window c-family-hooks
|
remove-hooks window c-family-.+
|
||||||
remove-hooks window c-family-indent
|
|
||||||
remove-hooks window c-family-insert
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hook -group c-family-indent window ModeChange insert:.* c-family-trim-autoindent
|
hook -group c-family-indent window ModeChange insert:.* c-family-trim-autoindent
|
||||||
|
@ -291,9 +289,7 @@ hook global WinSetOption filetype=(c|cpp|objc) %[
|
||||||
]
|
]
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!c)(?!cpp)(?!objc).* %[
|
hook global WinSetOption filetype=(?!c)(?!cpp)(?!objc).* %[
|
||||||
remove-hooks window c-family-hooks
|
remove-hooks window c-family-.+
|
||||||
remove-hooks window c-family-indent
|
|
||||||
remove-hooks window c-family-insert
|
|
||||||
|
|
||||||
unalias window alt c-family-alternative-file
|
unalias window alt c-family-alternative-file
|
||||||
]
|
]
|
||||||
|
|
|
@ -70,6 +70,5 @@ hook global WinSetOption filetype=cabal %[
|
||||||
hook -group cabal-highlight global WinSetOption filetype=(?!cabal).* %{ remove-highlighter window/cabal }
|
hook -group cabal-highlight global WinSetOption filetype=(?!cabal).* %{ remove-highlighter window/cabal }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!cabal).* %{
|
hook global WinSetOption filetype=(?!cabal).* %{
|
||||||
remove-hooks window cabal-indent
|
remove-hooks window cabal-.+
|
||||||
remove-hooks window cabal-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,5 @@ hook global WinSetOption filetype=coffee %{
|
||||||
hook -group coffee-highlight global WinSetOption filetype=(?!coffee).* %{ remove-highlighter window/coffee }
|
hook -group coffee-highlight global WinSetOption filetype=(?!coffee).* %{ remove-highlighter window/coffee }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!coffee).* %{
|
hook global WinSetOption filetype=(?!coffee).* %{
|
||||||
remove-hooks window coffee-indent
|
remove-hooks window coffee-.+
|
||||||
remove-hooks window coffee-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,5 @@ hook global WinSetOption filetype=cucumber %{
|
||||||
hook -group cucumber-highlight global WinSetOption filetype=(?!cucumber).* %{ remove-highlighter window/cucumber }
|
hook -group cucumber-highlight global WinSetOption filetype=(?!cucumber).* %{ remove-highlighter window/cucumber }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!cucumber).* %{
|
hook global WinSetOption filetype=(?!cucumber).* %{
|
||||||
remove-hooks window cucumber-indent
|
remove-hooks window cucumber-.+
|
||||||
remove-hooks window cucumber-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,5 @@ hook global WinSetOption filetype=dart %{
|
||||||
hook -group dart-highlight global WinSetOption filetype=(?!dart).* %{ remove-highlighter window/dart }
|
hook -group dart-highlight global WinSetOption filetype=(?!dart).* %{ remove-highlighter window/dart }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!dart).* %{
|
hook global WinSetOption filetype=(?!dart).* %{
|
||||||
remove-hooks window dart-hooks
|
remove-hooks window dart-.+
|
||||||
remove-hooks window dart-indent
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,5 @@ hook global WinSetOption filetype=elm %{
|
||||||
hook -group elm-highlight global WinSetOption filetype=(?!elm).* %{ remove-highlighter window/elm }
|
hook -group elm-highlight global WinSetOption filetype=(?!elm).* %{ remove-highlighter window/elm }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!elm).* %{
|
hook global WinSetOption filetype=(?!elm).* %{
|
||||||
remove-hooks window elm-indent
|
remove-hooks window elm-.+
|
||||||
remove-hooks window elm-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,5 @@ hook global WinSetOption filetype=haml %{
|
||||||
hook -group haml-highlight global WinSetOption filetype=(?!haml).* %{ remove-highlighter window/haml }
|
hook -group haml-highlight global WinSetOption filetype=(?!haml).* %{ remove-highlighter window/haml }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!haml).* %{
|
hook global WinSetOption filetype=(?!haml).* %{
|
||||||
remove-hooks window haml-indent
|
remove-hooks window haml-.+
|
||||||
remove-hooks window haml-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,5 @@ hook -group hbs-highlight global WinSetOption filetype=(?!hbs).* %{
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!hbs).* %{
|
hook global WinSetOption filetype=(?!hbs).* %{
|
||||||
remove-hooks window hbs-indent
|
remove-hooks window hbs-.+
|
||||||
remove-hooks window hbs-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,5 @@ hook global WinSetOption filetype=i3 %[
|
||||||
hook -group i3-highlight global WinSetOption filetype=(?!i3).* %{ remove-highlighter window/i3 }
|
hook -group i3-highlight global WinSetOption filetype=(?!i3).* %{ remove-highlighter window/i3 }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!i3).* %{
|
hook global WinSetOption filetype=(?!i3).* %{
|
||||||
remove-hooks window i3-hooks
|
remove-hooks window i3-.+
|
||||||
remove-hooks window i3-indent
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,8 +101,7 @@ hook global WinSetOption filetype=moon %{
|
||||||
hook -group moon-highlight global WinSetOption filetype=(?!moon).* %{ remove-highlighter window/moon }
|
hook -group moon-highlight global WinSetOption filetype=(?!moon).* %{ remove-highlighter window/moon }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!moon).* %{
|
hook global WinSetOption filetype=(?!moon).* %{
|
||||||
remove-hooks window moon-indent
|
remove-hooks window moon-.+
|
||||||
remove-hooks window moon-hooks
|
|
||||||
|
|
||||||
unalias window alt moon-alternative-file
|
unalias window alt moon-alternative-file
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,5 @@ hook global WinSetOption filetype=php %{
|
||||||
hook -group php-highlight global WinSetOption filetype=(?!php).* %{ remove-highlighter window/php-file }
|
hook -group php-highlight global WinSetOption filetype=(?!php).* %{ remove-highlighter window/php-file }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!php).* %{
|
hook global WinSetOption filetype=(?!php).* %{
|
||||||
remove-hooks window php-indent
|
remove-hooks window php-.+
|
||||||
remove-hooks window php-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,5 @@ hook global WinSetOption filetype=protobuf %[
|
||||||
hook -group protobuf-highlight global WinSetOption filetype=(?!protobuf).* %{ remove-highlighter window/protobuf }
|
hook -group protobuf-highlight global WinSetOption filetype=(?!protobuf).* %{ remove-highlighter window/protobuf }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!protobuf).* %{
|
hook global WinSetOption filetype=(?!protobuf).* %{
|
||||||
remove-hooks window protobuf-hooks
|
remove-hooks window protobuf-.+
|
||||||
remove-hooks window protobuf-indent
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,5 @@ hook global WinSetOption filetype=pug %{
|
||||||
hook -group pug-highlight global WinSetOption filetype=(?!pug).* %{ remove-highlighter window/pug }
|
hook -group pug-highlight global WinSetOption filetype=(?!pug).* %{ remove-highlighter window/pug }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!pug).* %{
|
hook global WinSetOption filetype=(?!pug).* %{
|
||||||
remove-hooks window pug-indent
|
remove-hooks window pug-.+
|
||||||
remove-hooks window pug-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,5 @@ hook global WinSetOption filetype=ragel %{
|
||||||
hook -group ragel-highlight global WinSetOption filetype=(?!ragel).* %{ remove-highlighter window/ragel }
|
hook -group ragel-highlight global WinSetOption filetype=(?!ragel).* %{ remove-highlighter window/ragel }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!ragel).* %{
|
hook global WinSetOption filetype=(?!ragel).* %{
|
||||||
remove-hooks window ragel-indent
|
remove-hooks window ragel-.+
|
||||||
remove-hooks window ragel-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,5 @@ hook global WinSetOption filetype=sass %{
|
||||||
hook -group sass-highlight global WinSetOption filetype=(?!sass).* %{ remove-highlighter window/sass }
|
hook -group sass-highlight global WinSetOption filetype=(?!sass).* %{ remove-highlighter window/sass }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!sass).* %{
|
hook global WinSetOption filetype=(?!sass).* %{
|
||||||
remove-hooks window sass-indent
|
remove-hooks window sass-.+
|
||||||
remove-hooks window sass-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,6 +127,5 @@ hook global WinSetOption filetype=scheme %{
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!scheme).* %{
|
hook global WinSetOption filetype=(?!scheme).* %{
|
||||||
remove-hooks window scheme-indent
|
remove-hooks window scheme-.+
|
||||||
remove-hooks window scheme-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,5 @@ hook global WinSetOption filetype=scss %[
|
||||||
hook -group scss-highlight global WinSetOption filetype=(?!scss).* %{ remove-highlighter window/scss }
|
hook -group scss-highlight global WinSetOption filetype=(?!scss).* %{ remove-highlighter window/scss }
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!scss).* %{
|
hook global WinSetOption filetype=(?!scss).* %{
|
||||||
remove-hooks window scss-indent
|
remove-hooks window scss-.+
|
||||||
remove-hooks window scss-hooks
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,6 @@ hook -group toml-highlight global WinSetOption filetype=(?!toml).* %{
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=(?!toml).* %{
|
hook global WinSetOption filetype=(?!toml).* %{
|
||||||
remove-hooks window toml-indent
|
remove-hooks window toml-.+
|
||||||
remove-hooks window toml-hooks
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user