From 40240bbfd7d508570856fdaa43274baa31a30e53 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 11 May 2024 13:04:45 +0530 Subject: (Emacs/app)~changed project-root function and added aliases project-root now uses project.el. aliases for goto and project-root. --- Emacs/.config/emacs/app.org | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Emacs/.config/emacs/app.org') diff --git a/Emacs/.config/emacs/app.org b/Emacs/.config/emacs/app.org index d4ac94d..6448ea5 100644 --- a/Emacs/.config/emacs/app.org +++ b/Emacs/.config/emacs/app.org @@ -547,12 +547,12 @@ directory. "Use `read-directory-name' to change directories." (eshell/cd (list (read-directory-name "Directory?: ")))) - (with-eval-after-load "projectile" - (defun eshell/goto-project-root (&rest args) - "Change to directory `projectile-project-root'" - (if (projectile-project-root) - (eshell/cd (list (projectile-project-root))) - (eshell/echo "Projectile not active here...")))) + (defun eshell/project-root (&rest args) + "Change to directory `project-root'" + (if (project-current) + (eshell/cd (list (project-root (project-current)))) + (eshell/echo (format "[%s]: No project in current directory" + (propertize "Error" 'font-lock-face '(:foreground "red")))))) (defun +eshell/current-buffer () (interactive) -- cgit v1.2.3-13-gbd6f