From c65c0b394a381d30bf9b7575769711a9ff6aebb8 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 25 Aug 2015 16:23:47 +0300 Subject: [PATCH] Remove the hooks that take care of trailing whitespaces --- rc/markdown.kak | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/rc/markdown.kak b/rc/markdown.kak index 3aaffab7..e3bdb5fc 100644 --- a/rc/markdown.kak +++ b/rc/markdown.kak @@ -48,14 +48,6 @@ addhl -group /markdown/content regex \H\K\h\h$ 0:PrimarySelection # Commands # ‾‾‾‾‾‾‾‾ -def -hidden _markdown_filter_around_selections %{ - eval -draft -itersel %{ - exec - # remove trailing white spaces - try %{ exec -draft s \h+$ d } - } -} - def -hidden _markdown_indent_on_new_line %{ eval -draft -itersel %{ # preserve previous line indent @@ -72,13 +64,10 @@ def -hidden _markdown_indent_on_new_line %{ hook global WinSetOption filetype=markdown %{ addhl ref markdown - - hook window InsertEnd .* -group markdown-hooks _markdown_filter_around_selections hook window InsertChar \n -group markdown-indent _markdown_indent_on_new_line } hook global WinSetOption filetype=(?!markdown).* %{ rmhl markdown rmhooks window markdown-indent - rmhooks window markdown-hooks }