all repos — nixfiles @ 12c5c317e243552f3c2fca66bef62bd28a82373a

System and user configuration, managed by nix and home-manager

emacs: start eshell-toggle from project root
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 18:25:02 +0200
commit

12c5c317e243552f3c2fca66bef62bd28a82373a

parent

2dd4760ca3e164a2650ec94645a7683148b15022

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -713,7 +713,9 @@ (delete-window)))))) 
 (use-package eshell-toggle
   :commands (eshell-toggle)
-  :general ("C-`" #'eshell-toggle))
+  :general ("C-`" #'eshell-toggle)
+  :config (progn
+            (setq eshell-toggle-find-project-root-package 'project)))
 
 (declare-function eshell-push-command "esh-buf-stack" (CMD))
 (defun my-bind-esh-push ()