From dabf480e7d5960e948f3a21fb8bedb7d1a451200 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 17 Feb 2025 21:46:40 -0800 Subject: [PATCH] Change back to eshell for remote connections --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 35c76b0..e0792ae 100644 --- a/init.el +++ b/init.el @@ -1526,6 +1526,7 @@ With PROJECT, give diagnostics for all buffers in the current project." ;; project.el (use-package project :bind (([remap project-compile] . my/project-compile-or-default) + ("C-c v" . my/project-eshell-or-default) :map project-prefix-map ("s" . my/project-eshell) ("u" . my/project-run)) @@ -2668,16 +2669,15 @@ If no name is given, list all bookmarks instead." (set-face-attribute 'eshell-starship-icon-face nil :family "FiraCode Nerd Font")) -(defun my/open-shell-dwim (&optional arg) +(defun my/open-eshell-unless-remote (&optional arg) "Open either an Eshell or eat terminal based on `default-directory'. If `default-directory' is remote, call `my/project-eat-or-default'. Otherwise, call `my/project-eshell-or-default'. ARG is the same as for either of the above functions (only eshell uses it at the time of writing)." (interactive "P") (if (my/-eshell-really-remote-p) - (my/project-eat-or-default) + (my/project-eat-or-default arg) (my/project-eshell-or-default arg))) -(keymap-global-set "C-c v" #'my/open-shell-dwim) ;; proced (use-package proced