From 451c72cc3310fc9349d3be39a8f0faab8467b3c9 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sat, 28 Jul 2018 12:27:27 +0200 Subject: [PATCH] Do not enforce autoformat in ocaml --- rc/base/ocaml.kak | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/rc/base/ocaml.kak b/rc/base/ocaml.kak index 3686d4ed..026bac7b 100644 --- a/rc/base/ocaml.kak +++ b/rc/base/ocaml.kak @@ -1,8 +1,6 @@ # http://ocaml.org # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -# require ocp-indent - # Detection # ‾‾‾‾‾‾‾‾‾ @@ -18,30 +16,13 @@ add-highlighter shared/ocaml/code default-region group add-highlighter shared/ocaml/string region '"' (?Gg|ocp-indent --config base=%opt{indentwidth} --indent-empty --lines %val{cursor_line}" - } -} - # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ hook -group ocaml-highlight global WinSetOption filetype=ocaml %{ add-highlighter window/ocaml ref ocaml } -hook global WinSetOption filetype=ocaml %{ - hook window InsertChar [|\n] -group ocaml-indent ocaml-indent-on-char -} - hook -group ocaml-highlight global WinSetOption filetype=(?!ocaml).* %{ remove-highlighter window/ocaml } -hook global WinSetOption filetype=(?!ocaml).* %{ - remove-hooks window ocaml-indent -} - # Macro # ‾‾‾‾‾