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

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

[elpa] externals/dtache 9bf2e0592e 2/3: Add dired-rsync integration exam


From: ELPA Syncer
Subject: [elpa] externals/dtache 9bf2e0592e 2/3: Add dired-rsync integration example
Date: Tue, 8 Feb 2022 15:57:29 -0500 (EST)

branch: externals/dtache
commit 9bf2e0592eaf86d856d888dc988de403c01044a9
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Add dired-rsync integration example
---
 README.org | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/README.org b/README.org
index 26b3aac46b..fb482da733 100644
--- a/README.org
+++ b/README.org
@@ -425,6 +425,22 @@ The package can be integrated with the 
[[https://github.com/akermu/emacs-libvter
       (process-send-string vterm--process dtache--dtach-detach-character)))
 #+end_src
 
+*** Dired-rsync
+
+The [[https://github.com/stsquad/dired-rsync][dired-rsync]] is a package to 
run rsync commands from within =dired=. Its a perfect package to integrate with 
=dtache= since it typically requires some time to run and you don't want to 
have your Emacs limited by that process.
+
+#+begin_src elisp
+  (defun my/dtache-dired-rsync (command _details)
+    "Run COMMAND with `dtache'."
+    (let ((dtache-local-session t)
+          (dtache-session-origin 'rsync))
+      (dtache-start-session command t)))
+
+  (advice-add #'dired-rsync--do-run :override #'my/dtache-dired-rsync)
+#+end_src
+
+The above code block shows how to make =dired-rsync= use =dtache=.
+
 * Versions
 
 Information about larger changes that has been made between versions can be 
found in the =CHANGELOG.org=



reply via email to

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