summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-01-13 00:50:03 +0000
committerMaxime Coste <mawww@kakoune.org>2017-01-13 00:50:03 +0000
commit91a56c11fe0019fe21f4862e2caa309f6dd5e392 (patch)
tree02b64f87c3d579d15ef00c43df5d19d6e2da0fa1 /rc/core/python.kak
parentfc61ed93e606c86a4cf96b1266157e9106350e04 (diff)
Various auto indent fixes regarding wrong use of x instead of <a-x>
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak
index 07462099..fcd749d5 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -66,9 +66,9 @@ add-highlighter -group /python/comment fill comment
def -hidden python-indent-on-new-line %{
eval -draft -itersel %{
# copy '#' comment prefix and following white spaces
- try %{ exec -draft k x s ^\h*#\h* <ret> y jgh P }
+ try %{ exec -draft k <a-x> s ^\h*#\h* <ret> y jgh P }
# preserve previous line indent
- try %{ exec -draft <space> K <a-&> }
+ try %{ exec -draft \; K <a-&> }
# cleanup trailing whitespaces from previous line
try %{ exec -draft k <a-x> s \h+$ <ret> d }
# indent after line ending with :