diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-16 16:31:24 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-16 16:32:58 +0100 |
commit | 7340679982c5c4062ee9f4e8333f2689c3fdcfb5 (patch) | |
tree | 8c628ff1cf53b0f592cd6885ecc31cff9fa6e772 | |
parent | bec6fdbc3ff96e74b154bdbfd5be8fe2aec1d2f8 (diff) | |
download | dotfiles-7340679982c5c4062ee9f4e8333f2689c3fdcfb5.tar.gz dotfiles-7340679982c5c4062ee9f4e8333f2689c3fdcfb5.tar.bz2 dotfiles-7340679982c5c4062ee9f4e8333f2689c3fdcfb5.zip |
Inline error-msg in +eshell/project-root
-rw-r--r-- | Emacs/.config/emacs/elisp/eshell-additions.el | 7 |
1 files changed, 3 insertions, 4 deletions
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" |