JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.42k stars 5.45k forks source link

julia-mode.el: Add the ability to start a REPL from inside Emacs #8715

Closed Wilfred closed 8 years ago

Wilfred commented 9 years ago

It need not be very sophisticated, and I'm not sure how we'll integrate the shell and help features, but basic functionality would be much better than nothing.

PythonNut commented 9 years ago

This is what I use

(add-hook 'julia-mode-hook
  '(lambda ()
     (require 'comint)

     (defun my-julia-compile ()
       "Use compile to run julia programs"
       (interactive)
       (compile (concat "julia -L " (buffer-file-name)) t))

     (setq compilation-scroll-output t)
     (global-set-key (kbd "<f5>") 'my-julia-compile)))

Can be pretty trivially modified into a REPL.

dfannius commented 8 years ago

I haven't tried julia-shell-mode yet, but it looks promising.

PythonNut commented 8 years ago

Hm... Perhaps it can be merged into the official emacs package?

tkelman commented 8 years ago

It's GPL and borrows code from the GPL Matlab-emacs, so not unless it were clean-room reimplemented or julia-mode moved to a separate repository.

yuyichao commented 8 years ago

Moved to https://github.com/JuliaLang/julia-emacs/issues/1