From 3227fa7b57f7ded021f595e235c25db1be867ee8 Mon Sep 17 00:00:00 2001 From: Martin Chaine <chaine.martin@gmail.com> Date: Thu, 8 Dec 2016 11:07:25 +0100 Subject: [PATCH 1/2] Fix python comment chars --- rc/core/commenting.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/core/commenting.kak b/rc/core/commenting.kak index 151502ef5..91ac62de3 100644 --- a/rc/core/commenting.kak +++ b/rc/core/commenting.kak @@ -78,7 +78,8 @@ hook global BufSetOption filetype=(pug|rust) %{ } hook global BufSetOption filetype=python %{ - set buffer comment_selection_chars '""":"""' + set buffer comment_line_chars '#' + set buffer comment_selection_chars '\'\'\':\'\'\'' } hook global BufSetOption filetype=ragel %{ From 5b95e537ba0668bfdb128ac4973b415eee6f1b44 Mon Sep 17 00:00:00 2001 From: Martin Chaine <chaine.martin@gmail.com> Date: Thu, 8 Dec 2016 11:18:16 +0100 Subject: [PATCH 2/2] don't reset line chars for python --- rc/core/commenting.kak | 1 - 1 file changed, 1 deletion(-) diff --git a/rc/core/commenting.kak b/rc/core/commenting.kak index 91ac62de3..7e89d7493 100644 --- a/rc/core/commenting.kak +++ b/rc/core/commenting.kak @@ -78,7 +78,6 @@ hook global BufSetOption filetype=(pug|rust) %{ } hook global BufSetOption filetype=python %{ - set buffer comment_line_chars '#' set buffer comment_selection_chars '\'\'\':\'\'\'' }