[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode be58a4a 227/495: add go-mode-autoloads.el
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode be58a4a 227/495: add go-mode-autoloads.el |
Date: |
Sat, 7 Aug 2021 09:05:19 -0400 (EDT) |
branch: elpa/go-mode
commit be58a4ac5a43ab6a0cf876ba073faac3a3f4fd89
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
add go-mode-autoloads.el
While autoloads files shouldn't usually be part of the package, this
makes upgrading a lot easier for people who were used to go-mode-load.el
being part of the Go distribution.
We did decide against keeping that name though, as go-mode-autoloads.el
is more idiomatic, and one wrong is better than two.
---
.gitignore | 1 -
go-mode-autoloads.el | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 98 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 257c9f7..c531d98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
*.elc
-*-autoloads.el
diff --git a/go-mode-autoloads.el b/go-mode-autoloads.el
new file mode 100644
index 0000000..e5c6c99
--- /dev/null
+++ b/go-mode-autoloads.el
@@ -0,0 +1,98 @@
+;;; go-mode-autoloads.el --- automatically extracted autoloads
+;;
+;;; Code:
+
+
+;;;### (autoloads (go-download-play godoc gofmt-before-save go-mode)
+;;;;;; "go-mode" "go-mode.el" (21514 38760 682820 85000))
+;;; Generated autoloads from go-mode.el
+
+(autoload 'go-mode "go-mode" "\
+Major mode for editing Go source text.
+
+This mode provides (not just) basic editing capabilities for
+working with Go code. It offers almost complete syntax
+highlighting, indentation that is almost identical to gofmt and
+proper parsing of the buffer content to allow features such as
+navigation by function, manipulation of comments or detection of
+strings.
+
+In addition to these core features, it offers various features to
+help with writing Go code. You can directly run buffer content
+through gofmt, read godoc documentation from within Emacs, modify
+and clean up the list of package imports or interact with the
+Playground (uploading and downloading pastes).
+
+The following extra functions are defined:
+
+- `gofmt'
+- `godoc'
+- `go-import-add'
+- `go-remove-unused-imports'
+- `go-goto-imports'
+- `go-play-buffer' and `go-play-region'
+- `go-download-play'
+- `godef-describe' and `godef-jump'
+- `go-coverage'
+
+If you want to automatically run `gofmt' before saving a file,
+add the following hook to your emacs configuration:
+
+\(add-hook 'before-save-hook #'gofmt-before-save)
+
+If you want to use `godef-jump' instead of etags (or similar),
+consider binding godef-jump to `M-.', which is the default key
+for `find-tag':
+
+\(add-hook 'go-mode-hook (lambda ()
+ (local-set-key (kbd \"M-.\") #'godef-jump)))
+
+Please note that godef is an external dependency. You can install
+it with
+
+go get code.google.com/p/rog-go/exp/cmd/godef
+
+
+If you're looking for even more integration with Go, namely
+on-the-fly syntax checking, auto-completion and snippets, it is
+recommended that you look at flycheck
+\(see URL `https://github.com/flycheck/flycheck') or flymake in combination
+with goflymake (see URL `https://github.com/dougm/goflymake'), gocode
+\(see URL `https://github.com/nsf/gocode'), go-eldoc
+\(see URL `github.com/syohex/emacs-go-eldoc') and yasnippet-go
+\(see URL `https://github.com/dominikh/yasnippet-go')
+
+\(fn)" t nil)
+
+(add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode))
+
+(autoload 'gofmt-before-save "go-mode" "\
+Add this to .emacs to run gofmt on the current buffer when saving:
+ (add-hook 'before-save-hook 'gofmt-before-save).
+
+Note that this will cause go-mode to get loaded the first time
+you save any file, kind of defeating the point of autoloading.
+
+\(fn)" t nil)
+
+(autoload 'godoc "go-mode" "\
+Show Go documentation for a query, much like M-x man.
+
+\(fn QUERY)" t nil)
+
+(autoload 'go-download-play "go-mode" "\
+Downloads a paste from the playground and inserts it in a Go
+buffer. Tries to look for a URL at point.
+
+\(fn URL)" t nil)
+
+;;;***
+
+(provide 'go-mode-autoloads)
+;; Local Variables:
+;; version-control: never
+;; no-byte-compile: t
+;; no-update-autoloads: t
+;; coding: utf-8
+;; End:
+;;; go-mode-autoloads.el ends here
- [nongnu] elpa/go-mode ad5e273 203/495: suggest flycheck as well as flymake and fix URL markup, (continued)
- [nongnu] elpa/go-mode ad5e273 203/495: suggest flycheck as well as flymake and fix URL markup, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 26ca1fd 199/495: do not highlight built-in function if not followed by '(', ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 192c9e2 195/495: Use "point" argument instead of return value of point function, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 73ff68c 198/495: handle backslash in raw string in Emacs 23, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1071ac6 209/495: simplify godef--successful-p, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c597843 214/495: import Go's license, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c2bf889 217/495: remove all references to upstream misc/emacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3fb128a 219/495: Highlight type names in function parameter list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3300479 225/495: fix beginning-of-defun when point is near the start of a function, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 948dbeb 226/495: Issue 61., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode be58a4a 227/495: add go-mode-autoloads.el,
ELPA Syncer <=
- [nongnu] elpa/go-mode 0bcbcf1 228/495: refine install instructions, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3fdac08 233/495: use quit-window to hide the gofmt error window, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 50e7182 234/495: fix several `checkdoc' errors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d38444d 236/495: add RĂ¼diger Sonderfeld to AUTHORS file, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 59d1e82 231/495: include link to ELPA guide in readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d1a8f67 237/495: bump version to 1.1.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode aa032d9 248/495: Add Taiki Sugawara to AUTHORS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 64be4a3 249/495: Merge branch 'godoc_mode', ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5d53a13 252/495: Update import path of godef, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 15d227a 253/495: gofmt: wrap external commands in `unwind-protect', ELPA Syncer, 2021/08/07