From 5b99ef3197f4216fc8d04d08e2b026af732d7e98 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Fri, 9 Sep 2016 15:23:06 +0200 Subject: [PATCH] disable hooks --- rc/base/ruby.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index e6f7fab9..7abc7e83 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -107,7 +107,7 @@ def ruby-alternative-file -docstring 'Jump to the alternate file (implementation }} def -hidden _ruby_filter_around_selections %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ exec # remove trailing white spaces try %{ exec -draft s \h + $ d } @@ -115,7 +115,7 @@ def -hidden _ruby_filter_around_selections %{ } def -hidden _ruby_indent_on_char %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ # align middle and end structures to start try %{ exec -draft ^ \h * (else|elsif) $ ^ \h * (if) s \A | \Z \' } try %{ exec -draft ^ \h * (when) $ ^ \h * (case) s \A | \Z \' } @@ -125,7 +125,7 @@ def -hidden _ruby_indent_on_char %{ } def -hidden _ruby_indent_on_new_line %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ # preserve previous line indent try %{ exec -draft K } # filter previous line @@ -136,7 +136,7 @@ def -hidden _ruby_indent_on_new_line %{ } def -hidden _ruby_insert_on_new_line %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ # copy _#_ comment prefix and following white spaces try %{ exec -draft k x s ^ \h * \K \# \h * y j p } # wisely add end structure