From b74dfa1e74ff289a17c027be714b26e90a468c13 Mon Sep 17 00:00:00 2001 From: Mathieu Laparie Date: Thu, 21 Jan 2021 15:12:41 +0100 Subject: [PATCH 1/2] Add R and Rmd options for comment.kak --- rc/tools/comment.kak | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc/tools/comment.kak b/rc/tools/comment.kak index a0ffa46c..76bf68aa 100644 --- a/rc/tools/comment.kak +++ b/rc/tools/comment.kak @@ -115,6 +115,10 @@ hook global BufSetOption filetype=python %{ set-option buffer comment_block_end "'''" } +hook global BufSetOption filetype=(r|rmd) %{ + set-option buffer comment_line '#' +} + hook global BufSetOption filetype=ragel %{ set-option buffer comment_line '%%' set-option buffer comment_block_begin '%%{' From 0a978865f48b0cf2048a1c681f1059d224a83fbe Mon Sep 17 00:00:00 2001 From: Mathieu Laparie Date: Thu, 21 Jan 2021 15:35:35 +0100 Subject: [PATCH 2/2] Add comment symbols for r filetypes, remove rmd for now --- rc/tools/comment.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/tools/comment.kak b/rc/tools/comment.kak index 76bf68aa..383a3fcd 100644 --- a/rc/tools/comment.kak +++ b/rc/tools/comment.kak @@ -115,7 +115,7 @@ hook global BufSetOption filetype=python %{ set-option buffer comment_block_end "'''" } -hook global BufSetOption filetype=(r|rmd) %{ +hook global BufSetOption filetype=r %{ set-option buffer comment_line '#' }