 ;; (define-key c-mode-base-map (kbd "M-,")
 ;;   (function rtags-find-references-at-point))
 ;; See https://github.com/Andersbakken/rtags/issues/832))
-
-;; (eval-after-load 'company
-;;   '(add-to-list 'company-backends 'company-irony))
 
 (use-package helm-rtags)
 

  :config
  (progn
    (add-hook 'rust-mode-hook #'racer-mode)
    (add-hook 'racer-mode-hook #'eldoc-mode)
    (add-hook 'racer-mode-hook #'company-mode)))

(use-package rust-mode
  :config (progn
	    (setq rust-format-on-save t)
	    (define-key rust-mode-map (kbd "TAB") #'company-indent-or-complete-common)))

(setq company-tooltip-align-annotations t)

(use-package rtags
  :config

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   (quote
    ("cbd85ab34afb47003fa7f814a462c24affb1de81ebf172b78cb4e65186ba59d2" default)))
 '(ffap-machine-p-known (quote reject))
 '(nix-indent-function (quote nix-indent-line) t)
 '(package-selected-packages
   (quote
    (go-autocomplete go-stacktracer gnus-desktop-notify w3m multi-term forge ghub exec-path-from-shell projectile nix-mode helm-pass git-timemachine browse-at-remote unfill use-package-ensure-system-package adoc-mode dumb-jump jinja2-mode atomic-chrome notmuch direnv gist pass terraform-mode protobuf-mode helm-ls-git helm-gtags irony helm-rtags rtags racer cargo guide-key go-guru go-dlv godoctor python-mode fringe-helper git-gutter dockerfile-mode go-add-tags go-eldoc yaml-mode smex markdown-mode magit-gh-pulls magit ag wgrep-ag cmake-mode almost-mono-themes auto-compile use-package))))

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

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