[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure b50102f 128/313: [Fix #58] Add a function to c
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure b50102f 128/313: [Fix #58] Add a function to connect to remote socket repl (#68) |
Date: |
Wed, 11 Aug 2021 10:00:00 -0400 (EDT) |
branch: elpa/inf-clojure
commit b50102f6d1995d902b76b505d19bc8122086de03
Author: Erik Assum <erik@assum.net>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
[Fix #58] Add a function to connect to remote socket repl (#68)
---
CHANGELOG.md | 2 +-
README.md | 3 +++
inf-clojure.el | 7 +++++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9555518..86ca252 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,7 +3,7 @@
## master (unreleased)
### New Features
-
+* [#57](https://github.com/clojure-emacs/inf-clojure/pull/68): Add
`inf-clojure-connect`
* [#66](https://github.com/clojure-emacs/inf-clojure/pull/56): Add Planck
support.
* [#51](https://github.com/clojure-emacs/inf-clojure/pull/51): Commands do not
prompt by default anymore, unless they receive a non-nil prefix argument.
* [#44](https://github.com/clojure-emacs/inf-clojure/pull/44): Add REPL types
and Lumo support.
diff --git a/README.md b/README.md
index 7e2bf16..d1de492 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,9 @@ The REPL commands don't prompt by default but a prefix
argument will invert
this. For instance: `C-u C-c C-v` will ask for the symbol you want to show the
docstring for.
+You can use `M-x inf-clojure-connect` to connect to a running socket-repl.
+You will be prompted for host and port.
+
## REPL Type
An `inf-clojure` REPL can be of different types: Clojure, ClojureScript, Lumo
and Planck are all potentially valid options.
diff --git a/inf-clojure.el b/inf-clojure.el
index b499192..5057c6c 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -467,6 +467,13 @@ of `inf-clojure-*-cmd'). Runs the hooks from
(pop-to-buffer-same-window "*inf-clojure*")
(pop-to-buffer "*inf-clojure*")))
+;;;###autoload
+(defun inf-clojure-connect (host port)
+ "Connect to a running socket-repl via `inf-clojure'.
+HOST is the host the process is running on, PORT is where it's listening."
+ (interactive "shost: \nnport: ")
+ (inf-clojure (cons host port)))
+
(defun inf-clojure-eval-region (start end &optional and-go)
"Send the current region to the inferior Clojure process.
Prefix argument AND-GO means switch to the Clojure buffer afterwards."
- [nongnu] elpa/inf-clojure dd7dd78 304/313: Tweak a couple of docstrings, (continued)
- [nongnu] elpa/inf-clojure dd7dd78 304/313: Tweak a couple of docstrings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1e99b82 306/313: The redundant bit of code was actually required (#191), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9caed3e 092/313: Update the copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 3e22747 096/313: Use setq-local, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d04c36c 107/313: [Fix #31] Add basic project type support, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 862699e 102/313: [Fix #41] Add a command to quit REPL buffers, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b02ce23 118/313: Add arglists support in Lumo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ce0510b 124/313: Split inf-clojure-load-form by repl type, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 887da91 133/313: Use inf-clojure--sanitize-command everywhere, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure db9e985 130/313: Rename to arglists (plural) everywhere, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b50102f 128/313: [Fix #58] Add a function to connect to remote socket repl (#68),
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 6179a74 142/313: Extend the REPL type section of the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 4e96e93 147/313: Fix a bug causing read to output for expression, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9ba23b0 149/313: Wrap a long line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 956b22e 148/313: Release 2.0.1, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 74e8423 150/313: Fix get-completions for lumo (#81), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9fa8f37 153/313: Disable pretty print when fetching lumo arglists, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f666f60 154/313: [Fix #79] Disable coloring for the boot repl (#82), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1a71b5e 163/313: Rephrase process logging description a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ee38fc3 164/313: [Fix #96] Use inf-clojure--send-string instead of comint-proc-query, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7493ed8 166/313: Set inf-clojure-*-cmd :risky and :safe properties, ELPA Syncer, 2021/08/11