From 7340679982c5c4062ee9f4e8333f2689c3fdcfb5 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 16 Oct 2024 16:31:24 +0100 Subject: Inline error-msg in +eshell/project-root --- Emacs/.config/emacs/elisp/eshell-additions.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/elisp/eshell-additions.el b/Emacs/.config/emacs/elisp/eshell-additions.el index 51cdf21..f22f05e 100644 --- a/Emacs/.config/emacs/elisp/eshell-additions.el +++ b/Emacs/.config/emacs/elisp/eshell-additions.el @@ -40,10 +40,9 @@ "Change to directory `project-root'" (if (project-current) (eshell/cd (list (project-root (project-current)))) - (let ((error-msg (propertize "Error" 'font-lock-face - '(:foreground "red")))) - (eshell/echo - (format "[%s]: No project in current directory" error-msg))))) + (eshell/echo + (format "[%s]: No project in current directory" + (propertize "Error" 'font-lock-face '(:foreground "red")))))) (defun eshell/sudo-switch (&rest args) "Switch to a tramp connection sudo in the current directory" -- cgit v1.2.3-13-gbd6f