tpapp / julia-repl

Run an inferior Julia REPL in a terminal inside Emacs
Other
168 stars 35 forks source link

auto-loading julia-repl #46

Open jlapeyre opened 5 years ago

jlapeyre commented 5 years ago

For those who are interested in keeping their emacs startup time down, you might want to mention:

If you are using the emacs package manager (say via (require 'package) in your init.el), then putting

(use-package julia-repl
  :commands julia-repl julia-repl-mode
  :config (load-library "julia-mode"))

in your init.el will delay loading julia-repl until it is needed.

tpapp commented 5 years ago

Thanks -- I am actually using use-package, will update the README suggesting this as an option.

yashi commented 2 years ago

This is what I use with package.el

(use-package julia-repl
  :hook (julia-mode . julia-repl-mode))

If you are working on git repo, this works

(use-package julia-repl
  :load-path "~/src/julia-repl"
  :hook (julia-mode . julia-repl-mode))