Emacs: Add godoc binding

master
Pierre Neidhardt 2015-12-02 12:26:06 +11:00
parent 33a02b7c12
commit 8cc6fb374d
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
(lambda ()
(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 C-d") 'godoc)
(set (make-local-variable 'compile-command) (concat "go run " (shell-quote-argument buffer-file-name)))))
(define-skeleton go-main