julia-repl is an Emacs mode that provides a Julia REPL inside Emacs using ansi-term, allowing an integrated workflow with julia-emacs that supports debugging, colors, and everything that requires a terminal.
I have been working on a new release, with the following additional features:
Since I program in Emacs out of necessity, I would appreciate some testing from community members willing to help out before I tag this as a release. Just pull the latest master from the repo above, and provide feedback in this topic or open an issue.
(special thanks to @mauro3, who has helped a lot with testing and suggestions).
I would like to thank everyone who provided feedback. No new bug reports, so I tagged the current master as v0.1.0. If you are using MELPA, it should be updated automatically next time you upgrade your Emacs packages.
Somewhat off topic:
I found that if the julia session prints tons and tons of stuff (and may not responsive to C-c), then emacs becomes unusable. For instance running:
julia> while true
print("hi ")
end
hi hi hi ...
it can get pretty difficult to regain control, as issuing a C-c is not easy due to the sluggish emacs. Is there a way to make this better? (When running this in a terminal REPL, I can hit C-c no probs.)
Thanks, but it looks like it is not needed as ansi-term can handle the ~ (at least in Linux). If I get a bug report about it, I will modify the README.
Also, added functionality in the tp/activate branch that looks for a Project.toml and activates it when found. The shortcut is C-c C-a. Will be merged pending a clarification from Pkg.jl.
I merged the project activation functionality, so C-c C-a (in the Julia source file buffer) should now look for a [Julia]Project.toml in the containing directories, and if found, pkg"activate ..." it.
Also did some linting, but that should not affect anything. This is the last change I am planning before tagging a release, please test if you can (as always, you can just install from MELPA). If there are no problems, I will tag a release on Saturday.
Should be available via MELPA Stable shortly. As usual, bug reports and feature requests are welcome; and keeping on using master is appreciated as it helps with testing.
New feature: in addition to the existing C-c C-a which looks for a Project.toml and activates the corresponding project, C-u C-c C-a reverts to the “home” (default) project. Already in released stable version.
The other “fix” is using julia --color=no though I’m actually not sure how to pass in args using M-x commands but I’m assuming this is possible in a emacs dot file.