From 6e17ecfb6eadc157cc5229f3c36f2962cfe1fcdf Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 1 Oct 2016 13:44:18 +0100 Subject: [PATCH] Fix golang.kak highlighting hooks --- rc/base/golang.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/base/golang.kak b/rc/base/golang.kak index 9d7ff315f..5ffe02dc0 100644 --- a/rc/base/golang.kak +++ b/rc/base/golang.kak @@ -84,9 +84,9 @@ def -hidden _golang-indent-on-closing-curly-brace %[ # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -hook global WinSetOption filetype=golang %{ - addhl ref golang +hook -group golang-highlight global WinSetOption filetype=golang %{ addhl ref golang } +hook global WinSetOption filetype=golang %{ # cleanup trailing whitespaces when exiting insert mode hook window InsertEnd .* -group golang-hooks %{ try %{ exec -draft s^\h+$d } } hook window InsertChar \n -group golang-indent _golang-indent-on-new-line @@ -96,7 +96,7 @@ hook global WinSetOption filetype=golang %{ set window formatcmd "gofmt" } -hool -group golang-highlight global WinSetOption filetype=(?!golang).* %{ rmhl golang } +hook -group golang-highlight global WinSetOption filetype=(?!golang).* %{ rmhl golang } hook global WinSetOption filetype=(?!golang).* %{ rmhooks window golang-hooks