emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ssh-deploy b93b944 009/133: Updated README for optional


From: Stefan Monnier
Subject: [elpa] externals/ssh-deploy b93b944 009/133: Updated README for optional threading and mode-line
Date: Sat, 27 Mar 2021 14:48:33 -0400 (EDT)

branch: externals/ssh-deploy
commit b93b94469ef7f00c87367b16c371596683065343
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Updated README for optional threading and mode-line
---
 README.md     | 3 +++
 ssh-deploy.el | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 9d2adcb..aef9bdb 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,7 @@ Here is a list of other variables you can set globally or per 
directory:
 * `ssh-deploy-remote-shell-executable` Default remote shell executable when 
launching shell on remote host *(string)*
 * `ssh-deploy-verbose` Show messages in message buffer when starting and 
ending actions, default t *(boolean)*
 * `ssh-deploy-script` - Your custom lambda function that will be called using 
(funcall) when running deploy script handler
+* `ssh-deploy-async-with-threads` - Whether to use threads (make threads) 
instead of processes (async-start) for asynchronous operations, default nil 
*(boolean)*
 
 ## Deployment configuration examples
 
@@ -150,6 +151,7 @@ By combining a `~/.netrc`, `~/.authinfo` or 
`~/.authinfo.gpg` setup and a `publi
 ;; ssh-deploy - prefix = C-c C-z, f = forced upload, u = upload, d = download, 
x = diff, t = terminal, b = browse, h = shell
 (add-to-list 'load-path "~/.emacs.d/ssh-deploy/")
 (require 'ssh-deploy)
+(ssh-deploy-line-mode) ;; If you want mode-line feature
 (add-hook 'after-save-hook (lambda() (if (and (boundp 
'ssh-deploy-on-explicit-save) ssh-deploy-on-explicit-save) 
(ssh-deploy-upload-handler)) ))
 (add-hook 'find-file-hook (lambda() (if (and (boundp 
'ssh-deploy-automatically-detect-remote-changes) 
ssh-deploy-automatically-detect-remote-changes) 
(ssh-deploy-remote-changes-handler)) ))
 (global-set-key (kbd "C-c C-z f") (lambda() 
(interactive)(ssh-deploy-upload-handler-forced) ))
@@ -179,6 +181,7 @@ By combining a `~/.netrc`, `~/.authinfo` or 
`~/.authinfo.gpg` setup and a `publi
         :hook ((after-save . (lambda() (if (and (boundp 
'ssh-deploy-on-explicit-save) ssh-deploy-on-explicit-save) 
(ssh-deploy-upload-handler)) ))
                (find-file . (lambda() (if (and (boundp 
'ssh-deploy-automatically-detect-remote-changes) 
ssh-deploy-automatically-detect-remote-changes) 
(ssh-deploy-remote-changes-handler)) )))
         :config
+        (ssh-deploy-line-mode) ;; If you want mode-line feature
         (defhydra hydra-ssh-deploy (:color red :hint nil)
           "
     _u_: Upload                              _f_: Force Upload
diff --git a/ssh-deploy.el b/ssh-deploy.el
index f6796ac..76d13cb 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -84,7 +84,7 @@
 ;;     :hook ((after-save . (lambda() (if (and (boundp 
'ssh-deploy-on-explicit-save) ssh-deploy-on-explicit-save) 
(ssh-deploy-upload-handler)) ))
 ;;            (find-file . (lambda() (if (and (boundp 
'ssh-deploy-automatically-detect-remote-changes) 
ssh-deploy-automatically-detect-remote-changes) 
(ssh-deploy-remote-changes-handler)) )))
 ;;     :config
-;;     (ssh-deploy-line-mode)
+;;     (ssh-deploy-line-mode) ;; If you want mode-line feature
 ;;     (defhydra hydra-ssh-deploy (:color red :hint nil)
 ;;       "
 ;; _u_: Upload                              _f_: Force Upload
@@ -161,6 +161,7 @@
 ;; * `ssh-deploy-remote-shell-executable' - Default shell executable when 
launching shell on remote host
 ;; * `ssh-deploy-verbose' - Show messages in message buffer when starting and 
ending actions, default t *(boolean)*
 ;; * `ssh-deploy-script' - Our custom lambda function that will be called 
using (funcall) when running deploy script
+;; * `ssh-deploy-async-with-threads' - Whether to use threads (make threads) 
instead of processes (async-start) for asynchronous operations, default nil 
*(boolean)*
 ;;
 ;; Please see README.md from the same repository for extended documentation.
 
@@ -1382,7 +1383,6 @@
 ;;; Mode Line
 
 
-;; TODO This has stopped working
 (define-minor-mode ssh-deploy-line-mode
   "Show SSH Deploy status in mode line"
   :global t



reply via email to

[Prev in Thread] Current Thread [Next in Thread]