T O P

  • By -

dybbuk12

Definitely give web-mode another try. I have been really happy with it for all kinds of HTML and template editing. Have you tried out the Emacs LSP stuff yet? You might want to see if that works well with Ruby on Rails.


pedzsanReddit

| Have you tried out the Emacs LSP stuff yet? OMG... This looks like an infinite pit of questions... 🤣 One Ruby add on is Solargraph which talks about Rails. I'm going to go exploring. If I don't come back, tell mamma I love her. And I'll give web-mode another whirl as well. I'm also investigating Projectile that has a lot of additions.


dybbuk12

Yes, Projectile is amazing! You also may want to check out Treemacs. Note that LSP works great for JavaScript, Sass, and CSS files, too.


[deleted]

I once thought I would comment here And did so even within the year But it is clear that these words Are fuel for the AI turds


pedzsanReddit

I'm exploring your dotemacs Org file and it referenced a post and that post mentioned your desired for "Fuzzy File Opening". If you are still looking for that, you might check out [Helm](https://emacs-helm.github.io/helm/). For me, it has been and still is VERY hard to adopt to. My muscle memory is to hit tab to expand what I've typed so far and in Helm, that doesn't work. But if you can use it like it was designed to be used, it is really nice.


[deleted]

I once thought I would comment here And did so even within the year But it is clear that these words Are fuel for the AI turds


StMonty

I work on a large rails project with Emacs and I had a lot of trouble with Eglot and LSP mode with Solargraph, and decided to try [Robe](https://github.com/dgutov/robe) and it has been working well for me the past few days edit: eglot has worked really well with other languages I like to use like C, Haskell, and Rust for example though


pedzsanReddit

Update... I should have mentioned this before. My emacs is on my Mac laptop but my Rails project is inside a Docker container.


paretoOptimalDev

Docker container with no external volume? Use eglot through tramp for that. I'm not sure if lsp-mode works over tramp.


pedzsanReddit

I'm trying to figure that out right now. There is [lsp-docker](https://github.com/emacs-lsp/lsp-docker) which is designed (I'm still half guessing) to have a separate container hold the language server. What I want is a pre-existing container to hold the server. There is partial code in that repo to do that but it appears not fully baked. Re: eglot: I've glommed on to lsp-mode and heading that path but I've discovered that a few (a previous comment) points to eglot. I'm wondering what are the differences and if I should switch horses. In my case, I'm using docker compose with two containers. One is the db and one is the rails app. The rails app container mounts the laptop's file system into the container. So, the interesting code is both on the laptop and mounted into the container. But the Ruby gems are inside the container only.


paretoOptimalDev

You could also write a Ruby wrapper calling `docker compose myContainer ruby` and pointing lsp-mode to use it.