From b74dfa1e74ff289a17c027be714b26e90a468c13 Mon Sep 17 00:00:00 2001 From: Mathieu Laparie Date: Thu, 21 Jan 2021 15:12:41 +0100 Subject: [PATCH] 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 '%%{'