               (helm-do-ag dir)
             (message "error: Not in a project."))))
 
-      (defun spacemacs/helm-do-ag-region-or-symbol ()
-        "Search with `ag' with a default input."
-        (interactive)
-        (spacemacs//helm-do-ag-region-or-symbol 'helm-do-ag))
-
       (defun spacemacs/helm-project-do-ag-region-or-symbol ()
         "Search with `ag' with a default input in project."
         (interactive)

              (spacemacs//helm-do-ag-region-or-symbol 'spacemacs/helm-do-ack dir)
            (message "error: Not in a project."))))

      (defun spacemacs/helm-do-pt (&optional dir)
        "Search with the platinum searcher using `helm-ag.'"
        (interactive)
        (if (configuration-layer/package-usedp 'helm-ag)
            (let ((helm-ag-base-command "pt --nocolor --nogroup"))
              (helm-do-ag dir))
          (message "error: helm-ag not found.")))

      (defun spacemacs/helm-project-do-pt ()
        "Search with pt using `helm-ag' in project"
        (interactive)

              (spacemacs/helm-do-pt dir)
            (message "error: Not in a project."))))


      (defun spacemacs/helm-project-do-pt-region-or-symbol ()
        "Search with pt using `helm-ag' using a default input in project."
