From 1a84ca46f6ba6d8bac7119fb8f26fc5767bee0fe Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 3 Jul 2014 17:47:11 +0200 Subject: [PATCH] indent_on_new_line: indent after (case|else) commands --- rc/fish.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/fish.kak b/rc/fish.kak index 2f5f9c15..769b6f26 100644 --- a/rc/fish.kak +++ b/rc/fish.kak @@ -49,6 +49,8 @@ def -hidden _fish_indent_on_new_line %{ try %{ exec -draft k : _fish_filter_around_selections } # copy '#' comment prefix and following white spaces try %{ exec -draft k x s ^\h*\K#\h* y j p } + # indent after (case|else) commands + try %{ exec -draft k x (case|else) j } # indent after (begin|for|function|if|switch|while) commands and add 'end' command try %{ exec -draft k x (begin|for|function|(? x y p j a end k } }