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

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

[nongnu] elpa/inf-ruby f6f9e727f5 2/6: Update README do document 'inf-ru


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby f6f9e727f5 2/6: Update README do document 'inf-ruby-wrapper-command'
Date: Sun, 15 Dec 2024 22:01:49 -0500 (EST)

branch: elpa/inf-ruby
commit f6f9e727f5baf2e8add1b29982b3df8ca7627774
Author: Hugo Sales <hugo@hsal.es>
Commit: Hugo Sales <hugo@hsal.es>

    Update README do document 'inf-ruby-wrapper-command'
---
 README.md | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/README.md b/README.md
index 59e11679cf..dc658e4370 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,17 @@ A simple IRB process can be fired up with <kbd>M-x 
inf-ruby</kbd>.
 To launch a REPL with project-specific console instead, type <kbd>M-x 
inf-ruby-console-auto</kbd>.
 It recognizes several project types, including Rails, gems and anything with 
`racksh` in their Gemfile.
 
+### With docker
+
+To run the project specific console in a Docker (or Podman or other) 
container, or in another shell
+or host, set `inf-mode-wrapper-command` which will be used to `format` to the 
command for launching
+the console, so it must include `%s`. For instance, one can add the following 
to a `.dir-locals.el`
+file at the root of a project:
+
+```lisp
+((ruby-mode . ((inf-ruby-wrapper-command . "docker exec -i container_name 
%s"))))
+```
+
 ### Hooks
 When entered, this mode runs `comint-mode-hook` and
 `inf-ruby-mode-hook` (in that order).



reply via email to

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