 
 (use-package godoctor)
 
-(use-package go-mode
-  :ensure go-mode
-  :mode "\\.go\\'"
-  :commands (godoc gofmt gofmt-before-save go-remove-unused-imports)
-  :config
-  (progn
-    (setq gofmt-command "goimports")
-    (add-hook 'before-save-hook 'gofmt-before-save))
-  ;;(flycheck-mode)
-  ;;#'go-guru-hl-identifier-mode)))
-  :config
-  (progn
-    (use-package godoctor)
-    ;;(bind-key "C-c C-P" 'aim/occur-go-public-functions)
-    (bind-key "C-c C-f" 'gofmt go-mode-map)
-    (bind-key "C-c C-g" 'go-goto-imports go-mode-map)
-    (bind-key "C-c C-k" 'godoc go-mode-map)
-    (bind-key "C-c C-r" 'go-remove-unused-imports go-mode-map)
-    (bind-key "C-M-x" 'aim/run-go-buffer go-mode-map)
-    (bind-key "M-." 'godef-jump go-mode-map)
-    (bind-key "C-c C-r" 'go-remove-unused-imports go-mode-map)))
-
 (use-package go-dlv)
 
 (use-package go-guru)

;; from https://matthewbauer.us/bauer/#install and
;; http://bling.github.io/blog/2016/01/18/why-are-you-changing-gc-cons-threshold/
(setq gc-cons-threshold

  :config (progn
	    (setq rust-format-on-save t)))

(unless (fboundp 'xref-push-marker-stack)
  (defalias 'xref-pop-marker-stack 'pop-tag-mark)

  (defun xref-push-marker-stack (&optional m)
    "Add point to the marker stack."
    (ring-insert find-tag-marker-ring (or m (point-marker)))))

(defadvice gdb-inferior-filter
    (around gdb-inferior-filter-without-stealing)
