go-mode-autoloads.el (3708B)
1 ;;; go-mode-autoloads.el --- automatically extracted autoloads (do not edit) -*- lexical-binding: t -*- 2 ;; Generated by the `loaddefs-generate' function. 3 4 ;; This file is part of GNU Emacs. 5 6 ;;; Code: 7 8 (add-to-list 'load-path (or (and load-file-name (directory-file-name (file-name-directory load-file-name))) (car load-path))) 9 10 11 12 ;;; Generated autoloads from go-mode.el 13 14 (autoload 'go-mode "go-mode" "\ 15 Major mode for editing Go source text. 16 17 This mode provides (not just) basic editing capabilities for 18 working with Go code. It offers almost complete syntax 19 highlighting, indentation that is almost identical to gofmt and 20 proper parsing of the buffer content to allow features such as 21 navigation by function, manipulation of comments or detection of 22 strings. 23 24 In addition to these core features, it offers various features to 25 help with writing Go code. You can directly run buffer content 26 through gofmt, read godoc documentation from within Emacs, modify 27 and clean up the list of package imports or interact with the 28 Playground (uploading and downloading pastes). 29 30 The following extra functions are defined: 31 32 - `gofmt' 33 - `godoc' and `godoc-at-point' 34 - `go-import-add' 35 - `go-goto-arguments' 36 - `go-goto-docstring' 37 - `go-goto-function' 38 - `go-goto-function-name' 39 - `go-goto-imports' 40 - `go-goto-return-values' 41 - `go-goto-method-receiver' 42 - `go-play-buffer' and `go-play-region' 43 - `go-download-play' 44 - `godef-describe' and `godef-jump' 45 - `go-coverage' 46 47 If you want to automatically run `gofmt' before saving a file, 48 add the following hook to your Emacs configuration: 49 50 (add-hook 'before-save-hook #'gofmt-before-save) 51 52 If you want to use `godef-jump' instead of etags (or similar), 53 consider binding godef-jump to `M-.', which is the default key 54 for `find-tag': 55 56 (add-hook 'go-mode-hook (lambda () 57 (local-set-key (kbd \"M-.\") #'godef-jump))) 58 59 Please note that godef is an external dependency. You can install 60 it with 61 62 go get github.com/rogpeppe/godef 63 64 65 If you're looking for even more integration with Go, namely 66 on-the-fly syntax checking, auto-completion and snippets, it is 67 recommended that you look at flycheck 68 (see URL `https://github.com/flycheck/flycheck') or flymake in combination 69 with goflymake (see URL `https://github.com/dougm/goflymake'), gocode 70 (see URL `https://github.com/nsf/gocode'), go-eldoc 71 (see URL `github.com/syohex/emacs-go-eldoc') and yasnippet-go 72 (see URL `https://github.com/dominikh/yasnippet-go') 73 74 (fn)" t) 75 (add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode)) 76 (autoload 'gofmt-before-save "go-mode" "\ 77 Add this to .emacs to run gofmt on the current buffer when saving: 78 (add-hook 'before-save-hook 'gofmt-before-save). 79 80 Note that this will cause ‘go-mode’ to get loaded the first time 81 you save any file, kind of defeating the point of autoloading." t) 82 (autoload 'godoc "go-mode" "\ 83 Show Go documentation for QUERY, much like \\<go-mode-map>\\[man]. 84 85 (fn QUERY)" t) 86 (autoload 'go-download-play "go-mode" "\ 87 Download a paste from the playground and insert it in a Go buffer. 88 Tries to look for a URL at point. 89 90 (fn URL)" t) 91 (autoload 'go-dot-mod-mode "go-mode" "\ 92 A major mode for editing go.mod files. 93 94 (fn)" t) 95 (add-to-list 'auto-mode-alist '("go\\.mod\\'" . go-dot-mod-mode)) 96 (autoload 'go-dot-work-mode "go-mode" "\ 97 A major mode for editor go.work files. 98 99 (fn)" t) 100 (add-to-list 'auto-mode-alist '("go\\.work\\'" . go-dot-work-mode)) 101 (register-definition-prefixes "go-mode" '("go-" "god" "gofmt")) 102 103 ;;; End of scraped data 104 105 (provide 'go-mode-autoloads) 106 107 ;; Local Variables: 108 ;; version-control: never 109 ;; no-byte-compile: t 110 ;; no-update-autoloads: t 111 ;; no-native-compile: t 112 ;; coding: utf-8-emacs-unix 113 ;; End: 114 115 ;;; go-mode-autoloads.el ends here