   (helm :buffer "*helm: spacemacs*"
         :sources `(,(helm-spacemacs//layer-source)
                    ,(helm-spacemacs//package-source)
+                   ,(helm-spacemacs//dotspacemacs-source)
                    ,(helm-spacemacs//toggle-source))))
 
 (defun helm-spacemacs//layer-source ()

    (dolist (toggle spacemacs-toggles)
      (push (symbol-name (car toggle)) result))
    (sort result 'string<)))

(defun helm-spacemacs//layer-action-open-file (file candidate)
  "Open FILE of the passed CANDIDATE."

    (when toggle
      (funcall (plist-get (cdr toggle) :function)))))

(defun helm-spacemacs//go-to-dotfile-variable (candidate)
  "Go to candidate in the dotfile."
  (find-file dotspacemacs-filepath)
  (goto-char (point-min))
  ;; try to exclude comments
  (re-search-forward (format "^[a-z\s\\(\\-]*%s" candidate))
  (beginning-of-line))


(provide 'helm-spacemacs)

;;; helm-spacemacs.el ends here
