From 997be323f5019c254ff9e25d3b5f703a7daf4358 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 20 Feb 2025 20:33:00 -0800 Subject: [PATCH] Add my/always-use-eat --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 9ab080f..e266aeb 100644 --- a/init.el +++ b/init.el @@ -2663,11 +2663,15 @@ If no name is given, list all bookmarks instead." (defvar my/eshell-or-eat-hook nil "Hook to determine weather `my/open-shell-dwin' uses `eshell' or `eat'.") +(defvar my/always-use-eat nil + "Make `my/open-shell-dwim' always use eat.") +(put 'my/always-use-eat 'safe-local-variable 'booleanp) (defun my/open-shell-dwim (&optional arg) "Open either an `eshell' or `eat' terminal based on `my/eshell-or-eat-hook'. ARG is the same as for either of the above functions." (interactive "P") - (if (run-hook-with-args-until-success 'my/eshell-or-eat-hook) + (if (or my/always-use-eat + (run-hook-with-args-until-success 'my/eshell-or-eat-hook)) (my/project-eat-or-default arg) (my/project-eshell-or-default arg))) (keymap-global-set "C-c v" #'my/open-shell-dwim)