From 324c7d35e4721b637b8241fab2bd3265f475df30 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 6 Sep 2019 12:37:49 +0200 Subject: Emacs: auto-find monorepo sub-projects --- emacs/.emacs.d/main.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/.emacs.d/main.el') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index f74e746..2cd5c23 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -304,6 +304,12 @@ With two prefix arguments, write out the day and month name." :config (progn (add-to-list 'projectile-globally-ignored-files "package-lock.json") (add-to-list 'projectile-globally-ignored-files "pnpm-lock.yaml") + (add-to-list 'projectile-project-root-files "package.json") + (add-to-list 'projectile-project-root-files-bottom-up "pnpm-workspace.yaml") + (setq projectile-project-root-files-functions '(projectile-root-local + projectile-root-top-down + projectile-root-bottom-up + projectile-root-top-down-recurring)) (with-eval-after-load 'evil-ex (evil-ex-define-cmd "prg" #'projectile-ripgrep) (evil-ex-define-cmd "pesh[ell]" #'projectile-run-eshell)))) -- cgit 1.4.1