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