branch: elpa/go-mode
commit 404f8ca55664ba43f6a475bb1cf4d44426ce47a8
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
Improve README and NEWS entries for new goto commands
---
NEWS | 16 +++++++++-------
README.md | 14 +++++++-------
2 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/NEWS b/NEWS
index 0962419..3e1cde5 100644
--- a/NEWS
+++ b/NEWS
@@ -8,15 +8,17 @@ go-mode-1.4.0 (???)
* Improve go-remove-unused-imports: don't fail to remove unused
imports because of compilation errors in other files.
- * Add new functions for jumping to various parts of function
+ * Add new commands for jumping to various parts of function
declarations:
- - go-goto-arguments
- - go-goto-docstring
- - go-goto-function
- - go-goto-function-name
- - go-goto-return-values
- - go-goto-method-receiver
+ - go-goto-arguments (C-c C-f a)
+ - go-goto-docstring (C-c C-f d)
+ - go-goto-function (C-c C-f f)
+ - go-goto-function-name (C-c C-f n)
+ - go-goto-return-values (C-c C-f r)
+ - go-goto-method-receiver (C-c C-f m)
+
+ Thanks to Lowe Thiderman for contributing these commands.
* Add new customizable variable go-packages-function, which allows
choosing between different ways of finding installed packages.
diff --git a/README.md b/README.md
index a219dc7..7176f2e 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ the following extra features to provide an improved
experience:
buffer
- Managing imports
- A function for jumping to the file's imports (`go-goto-imports` -
- `C-c C-g i`)
+ `C-c C-f i`)
- A function for adding imports, including tab completion
(`go-import-add`, bound to `C-c C-a`)
- A function for removing or commenting unused imports
@@ -45,14 +45,14 @@ the following extra features to provide an improved
experience:
parts of function signatures. These functions support anonymous
functions, but are smart enough to skip them when required (e.g.
when jumping to a method receiver or docstring.)
- - Jump to the argument list (`go-goto-arguments` - `C-c C-g a`)
+ - Jump to the argument list (`go-goto-arguments` - `C-c C-f a`)
- Jump to the docstring, create it if it does not exist yet
- (`go-goto-docstring` - `C-c C-g d`).
- - Jump to the function keyword (`go-goto-function` - `C-c C-g f`)
- - Jump to the function name (`go-goto-function-name` - `C-c C-g n`)
- - Jump to the return values (`go-goto-return-values` - `C-c C-g r`)
+ (`go-goto-docstring` - `C-c C-f d`).
+ - Jump to the function keyword (`go-goto-function` - `C-c C-f f`)
+ - Jump to the function name (`go-goto-function-name` - `C-c C-f n`)
+ - Jump to the return values (`go-goto-return-values` - `C-c C-f r`)
- Jump to the method receiver, adding a pair of parentheses if no
- method receiver exists (`go-goto-method-receiver` - `C-c C-g m`).
+ method receiver exists (`go-goto-method-receiver` - `C-c C-f m`).
All of these functions accept a prefix argument (`C-u`), causing
them to skip anonymous functions.