Merge pull request #578 from dougm/go
Add help-command mapping for godoc
This commit is contained in:
commit
2e8859b936
1 changed files with 5 additions and 2 deletions
|
@ -42,15 +42,18 @@
|
|||
;; Ignore go test -c output files
|
||||
(add-to-list 'completion-ignored-extensions ".test")
|
||||
|
||||
(define-key 'help-command (kbd "G") 'godoc)
|
||||
|
||||
(eval-after-load 'go-mode
|
||||
'(progn
|
||||
(defun prelude-go-mode-defaults ()
|
||||
;; Default key bindings for gotest.el
|
||||
;; Add to default go-mode key bindings
|
||||
(let ((map go-mode-map))
|
||||
(define-key map (kbd "C-c a") 'go-test-current-project) ;; current package, really
|
||||
(define-key map (kbd "C-c m") 'go-test-current-file)
|
||||
(define-key map (kbd "C-c .") 'go-test-current-test)
|
||||
(define-key map (kbd "C-c b") 'go-run))
|
||||
(define-key map (kbd "C-c b") 'go-run)
|
||||
(define-key map (kbd "C-h f") 'godoc-at-point))
|
||||
|
||||
;; Prefer goimports to gofmt if installed
|
||||
(let ((goimports (executable-find "goimports")))
|
||||
|
|
Loading…
Reference in a new issue