 
 ;; HELPERS
 (defun require-or-install (package-name)
-  (unless (require (quote package-name) nil 'noerror)
-    (message (symbol-name 'package-name))
+  (unless (package-installed-p package-name)
     (package-install package-name)
-    (require package-name)))
+    (require package-name))
+  t)
 
 
 (defun string-from-file (file-path)

  ;; projectile
  (require-or-install 'projectile)
  (projectile-mode)
  (setq projectile-enable-caching t)
  (setq projectile-cache-file (expand-file-name "projectile.cache" var-dir))
  (setq projectile-known-projects-file (expand-file-name "projectile-bookmarks.eld" var-dir))

 ;; If there is more than one, they won't work right.
 '(package-selected-packages
   (quote
    (rust-mode tabbar solarized-theme smartparens racer projectile flycheck-rust flx-ido feature-mode company-racer f))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
