init.el: Disable go support

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-06-23 17:43:51 +05:30
parent be3816e5b6
commit 25dad76e53

136
init.el
View file

@ -562,57 +562,57 @@
"ss" '(geiser-set-scheme
:which-key "select scheme implementation"))
(general-define-key
:states '(normal visual emacs)
:prefix "SPC m"
:keymaps 'go-mode-map
"hh" '(godoc-at-point
:which-key "godoc at point")
"ig" '(go-goto-imports
:which-key "goto imports")
"ia" '(go-import-add
:which-key "add imports")
"ir" '(go-remove-unused-imports
:which-key "remove unused imports")
"eb" '(go-play-buffer
:which-key "go-play buffer")
"er" '(go-play-region
:which-key "go-play region")
"ed" '(go-download-play
:which-key "download go-play snippet")
"xx" '(go-run-main
:which-key "run go run for current main package")
"ga" '(ff-find-other-file
:which-key "jump to matching test file or back")
"gc" '(go-coverage
:which-key "open a clone of buffer with coverage info")
"rn" '(go-rename
:which-key "go rename")
;(general-define-key
;:states '(normal visual emacs)
;:prefix "SPC m"
;:keymaps 'go-mode-map
;"hh" '(godoc-at-point
;:which-key "godoc at point")
;"ig" '(go-goto-imports
;:which-key "goto imports")
;"ia" '(go-import-add
;:which-key "add imports")
;"ir" '(go-remove-unused-imports
;:which-key "remove unused imports")
;"eb" '(go-play-buffer
;:which-key "go-play buffer")
;"er" '(go-play-region
;:which-key "go-play region")
;"ed" '(go-download-play
;:which-key "download go-play snippet")
;"xx" '(go-run-main
;:which-key "run go run for current main package")
;"ga" '(ff-find-other-file
;:which-key "jump to matching test file or back")
;"gc" '(go-coverage
;:which-key "open a clone of buffer with coverage info")
;"rn" '(go-rename
;:which-key "go rename")
"fd" '(go-guru-describe
:which-key "go-guru describe symbol at point")
"ff" '(go-guru-freevars
:which-key "go-guru show free variables")
"fi" '(go-guru-implements
:which-key "go-guru show implements relation")
"fc" '(go-guru-peers
:which-key "go-guru show channel sends/receives")
"fr" '(go-guru-referrers
:which-key "go-guru show referrers")
"fj" '(go-guru-definition
:which-key "go-guru jump to symbol definition")
"fp" '(go-guru-pointsto
:which-key "go-guru show what select expr points to")
"fs" '(go-guru-callstack
:which-key "go-guru show call stack")
"fe" '(go-guru-whicherrs
:which-key "go-guru show possible constants/types for error value")
"f<" '(go-guru-callers
:which-key "go-guru show possible callers")
"f>" '(go-guru-callees
:which-key "go-guru show call targets")
"fo" '(go-guru-set-scope
:which-key "go-guru set analysis scope"))
;"fd" '(go-guru-describe
;:which-key "go-guru describe symbol at point")
;"ff" '(go-guru-freevars
;:which-key "go-guru show free variables")
;"fi" '(go-guru-implements
;:which-key "go-guru show implements relation")
;"fc" '(go-guru-peers
;:which-key "go-guru show channel sends/receives")
;"fr" '(go-guru-referrers
;:which-key "go-guru show referrers")
;"fj" '(go-guru-definition
;:which-key "go-guru jump to symbol definition")
;"fp" '(go-guru-pointsto
;:which-key "go-guru show what select expr points to")
;"fs" '(go-guru-callstack
;:which-key "go-guru show call stack")
;"fe" '(go-guru-whicherrs
;:which-key "go-guru show possible constants/types for error value")
;"f<" '(go-guru-callers
;:which-key "go-guru show possible callers")
;"f>" '(go-guru-callees
;:which-key "go-guru show call targets")
;"fo" '(go-guru-set-scope
;:which-key "go-guru set analysis scope"))
;; custom functions
(defun spacemacs/git-link-copy-url-only ()
@ -817,23 +817,23 @@
(scheme-mode . company-mode))
;; go support
(use-package company-go
:defer t
:init
(progn
(setq company-go-show-annotation t)
(push 'company-go company-backends)))
(use-package go-impl
:defer t)
(use-package go-guru
:defer t)
(use-package go-mode
:defer t
:init
(setq-local tab-width 8)
:config
(add-hook 'before-save-hook 'gofmt-before-save)
:hook
(go-mode . company-mode))
;(use-package company-go
;:defer t
;:init
;(progn
;(setq company-go-show-annotation t)
;(push 'company-go company-backends)))
;(use-package go-impl
;:defer t)
;(use-package go-guru
;:defer t)
;(use-package go-mode
;:defer t
;:init
;(setq-local tab-width 8)
;:config
;(add-hook 'before-save-hook 'gofmt-before-save)
;:hook
;(go-mode . company-mode))
;;; init.el ends