Code Monkey home page Code Monkey logo

Comments (2)

Bogdanp avatar Bogdanp commented on July 29, 2024

It's certainly something you can do if you're willing to write your own load function. Check out the implementation of load-elm-repl in elm-interactive.el and elm-interactive--send-command in the same file. However, if all you want is for the REPL to respect your source directory settings then elm-mode should have you covered. Just make sure you have

    "source-directories": [
        "src"
    ],

in your elm-package.json file and everything should work as expected. elm-repl bases its load path on that file and elm-mode always tries to run commands with the working directory set to the folder that elm-package.json resides in.

Regarding not being able to do it manually: make sure your elm-package.json lives outside of your src folder. When elm-mode searches for that file it starts in the current directory of the current source file and works its way up the tree until it finds it.

from elm-mode.

 avatar commented on July 29, 2024

I guess sticking the configuration in one place is actually my preferred way of doing this (considering other parts of the workflow might need the same configuration), which works with elm-mode like you've suggested, so that's great.

from elm-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.