From 29055ae6a3ce4042a9251de3dfb444078efcef28 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Sep 2019 13:35:08 -0400 Subject: [PATCH] Disable projectile-{ag,ripgrep} Emit warnings for commands that won't work, as is, and that Doom already provides a better alternative for. --- core/core-projects.el | 5 +++++ core/core.el | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/core-projects.el b/core/core-projects.el index 1687939f4..af03b3964 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -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) diff --git a/core/core.el b/core/core.el index cc2c98c81..293462cb3 100644 --- a/core/core.el +++ b/core/core.el @@ -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