summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2017-11-03 11:09:45 +0300
committerFrank LENORMAND <lenormf@gmail.com>2017-11-03 11:09:45 +0300
commit9127ed0d552b3f96e664b5876da1849b084e8889 (patch)
tree0472eb21a365abc2f02dedff121bcd286f0762b3 /rc/core/python.kak
parentc9b280b7124752678873eeaa10cb793901450432 (diff)
src rc: Rename `exec`/`eval` into `execute-keys`/`evaluate-commands`
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak12
1 files changed, 6 insertions, 6 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak
index 306cbeba..8d145156 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -64,15 +64,15 @@ add-highlighter shared/python/comment fill comment
# ‾‾‾‾‾‾‾‾
define-command -hidden python-indent-on-new-line %{
- eval -draft -itersel %{
+ evaluate-commands -draft -itersel %{
# copy '#' comment prefix and following white spaces
- try %{ exec -draft k <a-x> s ^\h*#\h* <ret> y jgh P }
+ try %{ execute-keys -draft k <a-x> s ^\h*#\h* <ret> y jgh P }
# preserve previous line indent
- try %{ exec -draft \; K <a-&> }
+ try %{ execute-keys -draft \; K <a-&> }
# cleanup trailing whitespaces from previous line
- try %{ exec -draft k <a-x> s \h+$ <ret> d }
+ try %{ execute-keys -draft k <a-x> s \h+$ <ret> d }
# indent after line ending with :
- try %{ exec -draft <space> k x <a-k> :$ <ret> j <a-gt> }
+ try %{ execute-keys -draft <space> k x <a-k> :$ <ret> j <a-gt> }
}
}
@@ -84,7 +84,7 @@ hook -group python-highlight global WinSetOption filetype=python %{ add-highligh
hook global WinSetOption filetype=python %{
hook window InsertChar \n -group python-indent python-indent-on-new-line
# cleanup trailing whitespaces on current line insert end
- hook window InsertEnd .* -group python-indent %{ try %{ exec -draft \; <a-x> s ^\h+$ <ret> d } }
+ hook window InsertEnd .* -group python-indent %{ try %{ execute-keys -draft \; <a-x> s ^\h+$ <ret> d } }
}
hook -group python-highlight global WinSetOption filetype=(?!python).* %{ remove-highlighter window/python }