disable hooks

This commit is contained in:
Alex Leferry 2 2016-09-27 11:48:46 +02:00
parent f0820bc83d
commit c853e3a502

View File

@ -34,21 +34,21 @@ addhl -group /fish/code regex \b(and|begin|bg|bind|block|break|breakpoint|builti
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾
def -hidden _fish_filter_around_selections %{ def -hidden _fish_filter_around_selections %{
eval -draft -itersel %{ eval -no-hooks -draft -itersel %{
# remove trailing white spaces # remove trailing white spaces
try %{ exec -draft <a-x>s\h+$<ret>d } try %{ exec -draft <a-x>s\h+$<ret>d }
} }
} }
def -hidden _fish_indent_on_char %{ def -hidden _fish_indent_on_char %{
eval -draft -itersel %{ eval -no-hooks -draft -itersel %{
# deindent on (else|end) command insertion # deindent on (else|end) command insertion
try %{ exec -draft <space><a-i>w<a-k>(else|end)<ret><a-lt> } try %{ exec -draft <space><a-i>w<a-k>(else|end)<ret><a-lt> }
} }
} }
def -hidden _fish_indent_on_new_line %{ def -hidden _fish_indent_on_new_line %{
eval -draft -itersel %{ eval -no-hooks -draft -itersel %{
# preserve previous line indent # preserve previous line indent
try %{ exec -draft <space>K<a-&> } try %{ exec -draft <space>K<a-&> }
# filter previous line # filter previous line