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

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

[nongnu] elpa/inf-clojure cfad839 122/313: Officially support lumo -d (d


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure cfad839 122/313: Officially support lumo -d (dumb terminal) only
Date: Wed, 11 Aug 2021 09:59:59 -0400 (EDT)

branch: elpa/inf-clojure
commit cfad839632a7a01b2ad6a6f832fa3859d0ff3673
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>

    Officially support lumo -d (dumb terminal) only
    
    This patch supports lumo -d (dumb terminal) and suggests in the README a
    command to launch it this way.
---
 README.md      | 11 ++++++++++-
 inf-clojure.el |  2 +-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index f28da31..5a5bf52 100644
--- a/README.md
+++ b/README.md
@@ -82,7 +82,7 @@ At the moment, the default Clojure REPL and the Lumo REPL 
(though partially, see
 To hook up a custom REPL type, just use the right launch command (or connect 
through socket).
 For example, for Lumo just add the following in your `.dir-locals.el`:
 
-    ((nil . ((inf-clojure-boot-cmd . "lumo")))) ;; inf-clojure-lein-cmd if you 
are using Leiningen
+    ((nil . ((inf-clojure-boot-cmd . "lumo -d")))) ;; inf-clojure-lein-cmd if 
you are using Leiningen
 
 ## ElDoc
 
@@ -104,6 +104,15 @@ following to you Emacs config:
 ElDoc currently doesn't work with ClojureScript buffers and REPL's.
 You can leave it enabled, it just won't show anything in the echo area.
 
+## Lumo Setup
+
+For an optimal Lumo experience the `-d` needs to be passed to Lumo when 
launched from the command line. This disable `readline` support in order to 
play nicely with emacs.
+
+For example, you can use the following command (assuming `cp` contains the 
classpath) in your `.dir-locals.el`:
+
+((nil . (eval . (setq inf-clojure-boot-cmd (concat "lumo -d -c "
+                                                    (f-read (concat 
(inf-clojure-project-root) "cp")))))))
+
 ## Troubleshooting
 
 ### REPL not responsive in Windows OS
diff --git a/inf-clojure.el b/inf-clojure.el
index c8aa815..0f36dd6 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -1060,7 +1060,7 @@ for evaluation, therefore FORM should not include it."
   (apply-partially 'inf-clojure--response-match-p
                    inf-clojure--lumo-repl-form
                    (lambda (string)
-                     (string-match-p (concat inf-clojure--lumo-repl-form 
"\\Ca*true\\Ca*") string)))
+                     (string-match-p "\\Ca*true\\Ca*" string)))
   "Ascertain that PROC is a Lumo REPL.")
 
 (provide 'inf-clojure)



reply via email to

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