branch: elpa/go-mode
commit 6bb38ea10e360f71fc95fbf641966e5dcbb238a7
Author: Konstantin Shaposhnikov <[email protected]>
Commit: Dominik Honnef <[email protected]>
refactor/rename: emacs: set up autoloading of go-rename function
Add an ;;;###autoload magic comment, so that the go-rename command can be
used
without need to explicitly (require 'go-rename) first.
Change-Id: Ibdf9886fe98c55e1d948469aac972b568649f910
Reviewed-on: https://go-review.googlesource.com/16327
Reviewed-by: Alan Donovan <[email protected]>
---
rename_import/refactor/rename/go-rename.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/rename_import/refactor/rename/go-rename.el
b/rename_import/refactor/rename/go-rename.el
index a311e07..8faecc6 100644
--- a/rename_import/refactor/rename/go-rename.el
+++ b/rename_import/refactor/rename/go-rename.el
@@ -34,6 +34,7 @@
:type 'string
:group 'go-rename)
+;;;###autoload
(defun go-rename (new-name &optional force)
"Rename the entity denoted by the identifier at point, using
the `gorename' tool. With FORCE, call `gorename' with the