From b4161196867510262804f0dce4447af88ce2ad2e Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sat, 19 May 2018 18:31:00 +0200 Subject: [PATCH] Don't expand Go main package definitions at beginning of buffer --- snippets/go-mode/main | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/go-mode/main b/snippets/go-mode/main index 22d4b859d..3d4e94b2f 100644 --- a/snippets/go-mode/main +++ b/snippets/go-mode/main @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: func main() +# condition: (progn (forward-line 0) (not (and (eq (point-min) (point)) (looking-at-p "package")))) # key: main # -- func main() {