From c24fa2ea79f24b20eefbea0ee09407554a4f9659 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 21 Jan 2016 18:33:03 +0100 Subject: [PATCH] support commenting --- rc/ruby.kak | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rc/ruby.kak b/rc/ruby.kak index 77c4a5335..28dae4f4e 100644 --- a/rc/ruby.kak +++ b/rc/ruby.kak @@ -1,6 +1,8 @@ # http://ruby-lang.org # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ +# require commenting.kak + # Detection # ‾‾‾‾‾‾‾‾‾ @@ -97,6 +99,9 @@ hook global WinSetOption filetype=ruby %{ hook window InsertEnd .* -group ruby-hooks _ruby_filter_around_selections hook window InsertChar .* -group ruby-indent _ruby_indent_on_char hook window InsertChar \n -group ruby-indent _ruby_indent_on_new_line + + set window comment_line_chars '#' + set window comment_selection_chars '^begin=:^=end' } hook global WinSetOption filetype=(?!ruby).* %{