branch: elpa/go-mode
commit a9b987196dcaf0444e422a37e535f0299bae13d9
Author: Taiki Sugawara <[email protected]>
Commit: Dominik Honnef <[email protected]>
Use view-mode in godoc-mode
---
go-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/go-mode.el b/go-mode.el
index f97a10b..71fe692 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1077,7 +1077,8 @@ you save any file, kind of defeating the point of
autoloading."
(message (concat "godoc: " output)))))))
(define-derived-mode godoc-mode special-mode "Godoc"
- "Major mode for showing Go documentation.")
+ "Major mode for showing Go documentation."
+ (view-mode-enter))
;;;###autoload
(defun godoc (query)