From 5c4ed341e85fd27efa92681e05357376163af28b Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 17 Apr 2025 17:10:58 -0700 Subject: [PATCH] ec shortcut for finding files from eshell --- emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/init.el b/emacs/init.el index ce33eca..404714f 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -932,6 +932,10 @@ Otherwise, call `eshell`." (project-eshell) (eshell)))) + (defun eshell/ec (&rest args) + "Substitute for emacsclient alias from inside eshell" + (apply #'find-file args)) + ;; From https://karthinks.com/software/jumping-directories-in-eshell/ (defun eshell/j (&optional regexp) "Navigate to a previously visited directory in eshell, or to