emacs 2025-12-30

Hi, really basic question, using cider-jack-in-cljs (`browser` type), I get the default page, but I don’t understand how to make it use my index.html. Do you have an idea on how to do that?

✅ 1

This is my project structure

✦ ❯ tree -I 'out'
.
├── deps.edn
├── deps.edn~
├── resources
│   └── public
│       ├── index.html
│       └── style.css
└── src
    └── number_guessing
        ├── core.clj
        ├── core.cljs
        ├── core.cljs~
        └── core.clj~

4 directories, 8 files

This is the content of my deps.edn

{
 :paths ["src" "resources/public"]
 :deps {org.clojure/clojurescript {:mvn/version "1.11.60"}}
 :aliases
 {:dev {:main-opts ["-m"  "cljs.main"
                    "-ro" "{:static-dir,[\".\",\"out\",\"resources/public\"]}"
                    "-w"  "src"
                    "-c"  "number-guessing.core"
                    "-r"]}}}

#cider (or maybe one of the #cljs-adjacent channels) might be a better target for this question if you don't get any answers here

1

What's the general strategy when evil-mode seems to overshadow other major-mode keybindings? For example, my cider browse-ns buffer is a bit less useful because just brings me to the next line, instead of navigating to docs etc. Should I make some sort of hook to toggle evil-local-mode when I enter a new browse-ns buffer? Or is there another option? (An aside, but for the longest time now I've been staring at meow keybinds- I know it has a doom-module, but just haven't mustered the courage to make the leap yet)

A simple approach is to add modes where you want to be in evil-emacs-state (effectively evil turned off) to evil-emacs-state-modes . If you use https://github.com/emacs-evil/evil-collection/ then you could make a PR to add bindings for cider-browse-ns-mode (as it looks like it doesn’t have any right now).

Appreciated @tomd! i'll give those vars a look

👍 1

FYI, I made this PR to cider so cider-ns-browser uses buttons (which evil’s RET would press): https://github.com/clojure-emacs/cider/pull/3854/changes hopefully they’ll accept it 🤞

❗ 1

And as quick as that, it’s merged 🙂 Doesn’t help your general problem, but specifically for the browse-ns buffers, it should mean you don’t need to add any config to get RET working as you like.

❗ 1
❤️ 1

I can highly recommend meow, the bindings are better and it integrates better with vanilla emacs. I used Doom in the past but imo nowadays setting up vanilla emacs is much easier than in the past.

⭐ 1

Ahh, was thinking of going off of Bedrock emacs as a starter, my Doom isn't modified much beyond toggled modules, because I do like a lot of its (non-keybinding) defaults, and I feel like some of that might require quite a bit of work to replicate (but maybe not, plan on looking more into it today)