Skip to content

Commit c1df49d

Browse files
juergenhoetzelAndreaCrotti
authored andcommitted
Don't expand Go main package definitions at beginning of buffer (#275)
1 parent e700a11 commit c1df49d

File tree

1 file changed

+1
-0
lines changed
  • snippets/go-mode

1 file changed

+1
-0
lines changed

snippets/go-mode/main

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: func main()
3+
# condition: (progn (forward-line 0) (not (and (eq (point-min) (point)) (looking-at-p "package"))))
34
# key: main
45
# --
56
func main() {

0 commit comments

Comments
 (0)