Skip to content

Commit cfad839

Browse files
arichiardibbatsov
authored andcommitted
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.
1 parent e1a93c7 commit cfad839

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ At the moment, the default Clojure REPL and the Lumo REPL (though partially, see
8282
To hook up a custom REPL type, just use the right launch command (or connect through socket).
8383
For example, for Lumo just add the following in your `.dir-locals.el`:
8484

85-
((nil . ((inf-clojure-boot-cmd . "lumo")))) ;; inf-clojure-lein-cmd if you are using Leiningen
85+
((nil . ((inf-clojure-boot-cmd . "lumo -d")))) ;; inf-clojure-lein-cmd if you are using Leiningen
8686

8787
## ElDoc
8888

@@ -104,6 +104,15 @@ following to you Emacs config:
104104
ElDoc currently doesn't work with ClojureScript buffers and REPL's.
105105
You can leave it enabled, it just won't show anything in the echo area.
106106

107+
## Lumo Setup
108+
109+
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.
110+
111+
For example, you can use the following command (assuming `cp` contains the classpath) in your `.dir-locals.el`:
112+
113+
((nil . (eval . (setq inf-clojure-boot-cmd (concat "lumo -d -c "
114+
(f-read (concat (inf-clojure-project-root) "cp")))))))
115+
107116
## Troubleshooting
108117

109118
### REPL not responsive in Windows OS

inf-clojure.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ for evaluation, therefore FORM should not include it."
10601060
(apply-partially 'inf-clojure--response-match-p
10611061
inf-clojure--lumo-repl-form
10621062
(lambda (string)
1063-
(string-match-p (concat inf-clojure--lumo-repl-form "\\Ca*true\\Ca*") string)))
1063+
(string-match-p "\\Ca*true\\Ca*" string)))
10641064
"Ascertain that PROC is a Lumo REPL.")
10651065

10661066
(provide 'inf-clojure)

0 commit comments

Comments
 (0)