Disable projectile-{ag,ripgrep}

Emit warnings for commands that won't work, as is, and that Doom
already provides a better alternative for.
This commit is contained in:
Henrik Lissner 2019-09-06 13:35:08 -04:00
parent ac5168f8af
commit 29055ae6a3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 5 deletions

View file

@ -51,6 +51,11 @@ Emacs.")
(push ".project" projectile-project-root-files-bottom-up)
(push (abbreviate-file-name doom-local-dir) projectile-globally-ignored-directories)
;; Disable commands that won't work, as is, and that Doom already provides a
;; better alternative for.
(put 'projectile-ag 'disabled "Use +{ivy,helm}/project-search or +{ivy,helm}/ag instead")
(put 'projectile-ripgrep 'disabled "Use +{ivy,helm}/project-search or +{ivy,helm}/rg instead")
;; Treat current directory in dired as a "file in a project" and track it
(add-hook 'dired-before-readin-hook #'projectile-track-known-projects-find-file-hook)

View file

@ -146,11 +146,6 @@ users).")
;; to, it's our (the user's) failure. One case for all!
(setq auto-mode-case-fold nil)
;; Some commands are disabled and emit a warning whenever they are used. Let's
;; assume the user always knows what they're doing (hahahaha) and enable all
;; disabled commands.
(setq disabled-command-function nil)
;; Display the bare minimum at startup. We don't need all that noise. The
;; dashboard/empty scratch buffer is good enough.
(setq inhibit-startup-message t