     :init
     (progn
       (ido-vertical-mode t)
-      (defadvice ido-vertical-define-keys (after spacemacs/ido-vertical-define-keys activate)
+      (defun spacemacs/ido-vertical-define-keys ()
         ;; overwrite the key bindings for ido vertical mode only
         (define-key ido-completion-map (kbd "C-d") 'ido-delete-file-at-head)
         (define-key ido-completion-map (kbd "C-k") 'ido-prev-match)

            "x" 'ido-invoke-in-other-window)
          (key-chord-define ido-completion-map (kbd "jk")
                            (cdr (assoc 'ido-mode evil-leader--mode-maps)))))
      )))

(defun spacemacs/init-js2-mode ()
  (use-package js2-mode


(defun spacemacs/init-flx-ido ()
  (use-package flx-ido
    :init (flx-ido-mode 1)))

(defun spacemacs/init-flycheck ()
  (use-package flycheck
