diff options
Diffstat (limited to 'rc/filetype/python.kak')
| -rw-r--r-- | rc/filetype/python.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index 76cf496a..2259cbf5 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -156,7 +156,7 @@ define-command -hidden python-indent-on-new-line %< # cleanup trailing whitespaces from previous line try %{ execute-keys -draft k <a-x> s \h+$ <ret> d } # indent after line ending with : - try %{ execute-keys -draft <space> k <a-x> <a-k> :$ <ret> j <a-gt> } + try %{ execute-keys -draft <space> k <a-x> <a-k> :$ <ret> <a-K> ^\h*# <ret> j <a-gt> } # deindent closing brace/bracket when after cursor (for arrays and dictionaries) try %< execute-keys -draft <a-x> <a-k> ^\h*[}\]] <ret> gh / [}\]] <ret> m <a-S> 1<a-&> > > |
