Emacs: Add godoc binding
parent
33a02b7c12
commit
8cc6fb374d
|
@ -7,6 +7,7 @@
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(add-hook 'before-save-hook #'gofmt-before-save nil t)
|
(add-hook 'before-save-hook #'gofmt-before-save nil t)
|
||||||
(local-set-key (kbd "C-c m") 'go-main)
|
(local-set-key (kbd "C-c m") 'go-main)
|
||||||
|
(local-set-key (kbd "C-c C-d") 'godoc)
|
||||||
(set (make-local-variable 'compile-command) (concat "go run " (shell-quote-argument buffer-file-name)))))
|
(set (make-local-variable 'compile-command) (concat "go run " (shell-quote-argument buffer-file-name)))))
|
||||||
|
|
||||||
(define-skeleton go-main
|
(define-skeleton go-main
|
||||||
|
|
Loading…
Reference in New Issue