summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-01-02 04:20:05 +0000
committerMaxime Coste <mawww@kakoune.org>2017-01-02 04:20:05 +0000
commit5ab60cde51887ce3093d49faeab986d4f7587be7 (patch)
tree409765afe1fe6fc73be3c28f575baafb8ad2eb00 /rc/core/python.kak
parentd5231c713e4b62f113103ea7eff00ff796be479f (diff)
Rename python indentation command to be more consistent
We use `-` as word separator, and there is no need for leading underscore.
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 fc09beaa..337c4b2c 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -63,7 +63,7 @@ addhl -group /python/comment fill comment
# Commands
# ‾‾‾‾‾‾‾‾
-def -hidden _python_indent_on_new_line %{
+def -hidden python-indent-on-new-line %{
eval -draft -itersel %{
# preserve previous line indent
try %{ exec -draft <space> K <a-&> }
@@ -82,7 +82,7 @@ def -hidden _python_indent_on_new_line %{
hook -group python-highlight global WinSetOption filetype=python %{ addhl ref python }
hook global WinSetOption filetype=python %{
- hook window InsertChar \n -group python-indent _python_indent_on_new_line
+ 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 } }
}