 
 (setq make-project-args "")
 (defun make-project ()
-  "Run make. Automatically searches for a dixrectory containing a Makefile first"
+  "Run make. Automatically searches for a directory containing a Makefile first"
   (interactive)
   (let ((orig-dir (parent-directory (expand-file-name (buffer-file-name)))))
     (let ((make-dir (find-dir-containing orig-dir "Makefile")))

(add-hook 'racer-mode-hook #'eldoc-mode)
(add-hook 'racer-mode-hook #'company-mode)

(require 'rust-mode)
(define-key rust-mode-map (kbd "TAB") #'company-indent-or-complete-common)
;(define-key toml-mode-map [f5] #'cargo-process-build)
;(define-key toml-mode-map [(shift f5)] #'cargo-process-run)
(define-key rust-mode-map [f5] #'cargo-process-build)
(define-key rust-mode-map [(shift f5)] #'cargo-process-run)
(setq company-tooltip-align-annotations t)

(setq company-idle-delay .3)

;;;;;;;;;;;;;;

(custom-set-variables
 '(speedbar-show-unknown-files t))
;; Show unknown file types in speedbar as well

;; no startup msg  
(setq inhibit-startup-message t)   ; Disable startup message
