   (use-package helm-c-yasnippet
     :commands helm-c-yas-complete
     :init
-    (evil-leader/set-key "hy" 'helm-c-yas-complete)
-    :config
-    (progn
-      (setq helm-c-yas-space-match-any-greedy t)
-      (use-package yasnippet
-        :config
-        (let* ((layer (assq 'spacemacs spacemacs-config-layers))
-               (dir (plist-get (cdr layer) :dir)))
-          (setq yas-snippet-dirs (list (concat dir "snippets")))
-          (yas-global-mode 1))))))
+    (progn
+      (evil-leader/set-key "hy" 'helm-c-yas-complete)
+      (setq helm-c-yas-space-match-any-greedy t))
+    :config
+    (yas-global-mode 1)))
 
 (defun spacemacs/init-helm-descbinds ()
   (use-package helm-descbinds

  (use-package helm
    :defer t
    :init
    (progn 
      (add-to-hooks 'helm-mode '(erlang-mode-hook
                                 markdown-mode-hook
                                 org-mode-hook


(defun spacemacs/init-yasnippet ()
  (use-package yasnippet
    :init
    (let* ((layer (assq 'spacemacs spacemacs-config-layers))
           (dir (plist-get (cdr layer) :dir)))
      (setq yas-snippet-dirs (list (concat dir "snippets")))
      (spacemacs//diminish yas-minor-mode " Ⓨ"))
    :config
    (spacemacs//diminish yas-minor-mode " Ⓨ")))

