From d77fe33e9ada1995c9e646ae0eb396bccbbcb6d7 Mon Sep 17 00:00:00 2001 From: John Isom Date: Wed, 29 Jul 2020 20:45:54 -0600 Subject: [PATCH] Fix my issues in python.kak --- rc/filetype/python.kak | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index 08b079c95..db62c8dbc 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -28,7 +28,7 @@ hook -group python-highlight global WinSetOption filetype=python %{ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/python } } -provide-module python %{ +provide-module python %§ # Highlighters & Completion # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ @@ -149,8 +149,8 @@ define-command -hidden python-insert-on-new-line %{ try %{ execute-keys -draft k s ^\h*#\h* y jgh P } } } -define-command -hidden python-indent-on-new-line %{ - evaluate-commands -draft -itersel %{ +define-command -hidden python-indent-on-new-line %< + evaluate-commands -draft -itersel %< # preserve previous line indent try %{ execute-keys -draft K } # cleanup trailing whitespaces from previous line @@ -159,7 +159,7 @@ define-command -hidden python-indent-on-new-line %{ try %{ execute-keys -draft k :$ j } # deindent closing brace/bracket when after cursor (for arrays and dictionaries) try %[ execute-keys -draft ^\h*[}\]] gh / [}\]] m 1 ] - } -} + > +> -} +§