From db33b94cf1ab5fce120428eda99e5c1ca5caa9fd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 Sep 2025 15:54:58 -0400 Subject: [PATCH] feat(upload): activate ssh-deploy-line-mode When the variables are set. --- modules/tools/upload/config.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/tools/upload/config.el b/modules/tools/upload/config.el index 2062e6cbd..aee19799f 100644 --- a/modules/tools/upload/config.el +++ b/modules/tools/upload/config.el @@ -29,7 +29,10 @@ (when (and (bound-and-true-p ssh-deploy-root-remote) (integerp ssh-deploy-on-explicit-save) (> ssh-deploy-on-explicit-save 0)) - (ssh-deploy-upload-handler ssh-deploy-force-on-explicit-save)))) + (ssh-deploy-upload-handler ssh-deploy-force-on-explicit-save) + (when (or ssh-deploy-root-remote + ssh-deploy-root-local) + (ssh-deploy-line-mode +1))))) ;; Enable ssh-deploy if variables are set, and check for changes on open file ;; (if possible) @@ -40,4 +43,7 @@ (unless ssh-deploy-root-local (setq ssh-deploy-root-local (doom-project-root))) (when ssh-deploy-automatically-detect-remote-changes - (ssh-deploy-remote-changes-handler)))))) + (ssh-deploy-remote-changes-handler)) + (when (or ssh-deploy-root-remote + ssh-deploy-root-local) + (ssh-deploy-line-mode +1))))))