 ;; disable jshint since we prefer eslint checking
 (setq-default flycheck-disabled-checkers (append flycheck-disabled-checkers '(javascript-jshint)))
 
-;; use eslint with web-mode for jsx files
-(flycheck-add-mode 'javascript-eslint 'web-mode)
+;; use standard with web-mode for jsx files
+(flycheck-add-mode 'javascript-standard 'js2-mode)
 
 ;; customize flycheck temp file prefix
 (setq-default flycheck-temp-prefix ".flycheck")
 
 ;; javascript
-
-(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
-
-;; rust
-(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
-(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
-(setq rust-format-on-save t)
 
 (custom-set-variables
  ;; custom-set-variables was added by Custom.

                     (delete-file filename)  
                     (set-visited-file-name newname)         
                     (set-buffer-modified-p nil)     t))))

;; function to bind ri ruby inline documentation to a key
(defun ri-bind-key () 
  (local-set-key [f1] 'yari))


(defvar current-date-time-format "%a %b %d %H:%M:%S %Z %Y" 
  "Format of date to insert with `insert-current-date-time' func

  (add-hook 'helm-after-initialize-hook 'helm-ido-like-setup-bg-color-1))

;;;###autoload
(ac-config-default)

(global-auto-complete-mode t)

(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'ac-modes 'js2-mode)
(add-to-list 'load-path "/Users/jdwije/code/jdwije/tern/emacs/")
(autoload 'tern-mode "tern.el" nil t)

(add-hook 'js2-mode 'tern-mode)
(add-hook 'js2-mode 'yas-minor-mode)

(eval-after-load 'tern
   '(progn
      (require 'tern-auto-complete)
      (tern-ac-setup)))

(defun helm-ido-like () 
  "Configure and activate `helm', `helm-fuzzier' and `helm-flx'." 
  (interactive) 
