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() {