# Provide repl mode for my package

**URL:** <https://discourse.julialang.org/t/provide-repl-mode-for-my-package/108166>\
**Category:** General Usage\
**Tags:** repl\
**Created:** [December 29, 2023, 9:06pm UTC](https://discourse.julialang.org/t/provide-repl-mode-for-my-package/108166 "2023-12-29T21:06:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [December 29, 2023, 9:06pm UTC](https://discourse.julialang.org/t/provide-repl-mode-for-my-package/108166/1 "2023-12-29T21:06:45Z")

</div>

I want to provide a REPL mode for my package. I’m looking for help to set it up. I’ve looked at RCall.jl but it’s too complicated for me to understand. Also Pkg.jl, there’s too much stuff for me to understand. here is what I want:

1. Upon loading my package, there is a new mode provided that one can activate with a certain key. I kind of get how that works, but any hints much appreciated.
2. once in side the special new mode, one can type the name of a function, which then gets called and returns whatever it returns. Very much like like Pkg.jl but much simpler I guess:

```julia
myprompt> fun1
--> calls fun1() and returns

myprompt> fun2
--> calls fun2() and returns

myprompt> fun1 x
--> calls fun1(x) and returns

```

thanks!

---

<div class="post-metadata">

**Author:** ![Alec\_Loudenback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alec_loudenback/32/278_2.png) [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Post date:** [December 29, 2023, 9:08pm UTC](https://discourse.julialang.org/t/provide-repl-mode-for-my-package/108166/2 "2023-12-29T21:08:12Z")

</div>

> **[GitHub - MasonProtter/ReplMaker.jl: Simple API for building repl modes in Julia](https://github.com/MasonProtter/ReplMaker.jl)**
>
> Simple API for building repl modes in Julia. Contribute to MasonProtter/ReplMaker.jl development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [December 29, 2023, 9:15pm UTC](https://discourse.julialang.org/t/provide-repl-mode-for-my-package/108166/3 "2023-12-29T21:15:02Z")

</div>

👀

Thanks!
