+;; Reduce the time after which the company auto completion popup opens
+(setq company-idle-delay 0.2)
+
+;; Reduce the number of characters before company kicks in
+(setq company-minimum-prefix-length 1)
+
+;; Set path to racer binary
+(setq racer-cmd "/home/ram/.cargo/bin/racer")
+
+(add-hook 'rust-mode-hook
+ '(lambda ()
+ (racer-activate)
+ (racer-turn-on-eldoc)
+ (add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
+ (set (make-local-variable 'company-backends) '(company-racer))
+ (local-set-key (kbd "M-.") #'racer-find-definition)
+ (local-set-key (kbd "TAB") #'racer-complete-or-indent)))
+