Skip to content

Commit 15f0c3f

Browse files
Scott Douglas-WatsonScott Douglas-Watson
authored andcommitted
Update README.md for issue #474
Document workarounds for EOL issues on Microsoft Windows and note powershell.el conflict (issue #474).
1 parent 41b4608 commit 15f0c3f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,31 @@ implementation middleware which relies on
559559
your project middlewares and call `(cemerick.piggieback/cljs-repl)` or
560560
another method to start up the cljs REPL.
561561

562+
### Microsoft Windows
563+
564+
On Microsoft Windows the JVM default line separator string is `\r\n`
565+
which can appear in Emacs as `^M` characters at the end of lines
566+
printed out by the JVM. One option is to set the
567+
`buffer-display-table` to not show these characters as detailed
568+
[here](http://stackoverflow.com/questions/10098925/m-character-showing-in-clojure-slime-repl/11787550#11787550)
569+
(changing `slime-repl-mode-hook` to
570+
`cider-repl-mode-hook`). Alternatively, setting the system property
571+
`line.separator` to `\n` at JVM startup will stop the carriage return
572+
from being printed and will fix output in all cider buffers. To do so
573+
add `"-Dline.separator=\"\n\""` to `:jvm-opts` in
574+
`~/.lein/profiles.clj`.
575+
576+
### powershell.el
577+
578+
The powershell inferior shell mode truncates cider repl output when
579+
loaded. As a workaround remove
580+
581+
```el
582+
(require 'powershell)
583+
```
584+
585+
from your Emacs config.
586+
562587
## Changelog
563588

564589
An extensive changelog is available [here](CHANGELOG.md).

0 commit comments

Comments
 (0)