From afd9203dbf45397973467f0f043e1d511824ea40 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Mon, 7 Sep 2015 16:33:38 +0300 Subject: [PATCH] Fix the format-code alias, remove an unused function --- rc/dlang.kak | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rc/dlang.kak b/rc/dlang.kak index 406134be..dda1e6f9 100644 --- a/rc/dlang.kak +++ b/rc/dlang.kak @@ -81,10 +81,6 @@ def dlang-format-dfmt -docstring "Format the code using the dfmt utility" %{ } } -def dlang-disable-dfmt -docstring "Disable automatic code formatting" %{ - rmhooks buffer dlang-formatter -} - # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ @@ -97,7 +93,7 @@ hook global WinSetOption filetype=dlang %{ hook window InsertChar \{ -group dlang-indent _dlang-indent-on-opening-curly-brace hook window InsertChar \} -group dlang-indent _dlang-indent-on-closing-curly-brace - alias global format-code dlang-format-dfmt + alias buffer format-code dlang-format-dfmt } hook global WinSetOption filetype=(?!dlang).* %{ @@ -106,5 +102,5 @@ hook global WinSetOption filetype=(?!dlang).* %{ rmhooks window dlang-hooks rmhooks window dlang-indent - unalias global format-code + unalias buffer format-code }