emacs

Amin 2025-12-30T16:05:35.418159Z

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
Amin 2025-12-30T16:08:24.064539Z

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

Amin 2025-12-30T16:09:12.910169Z

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"]}}}

Samuel Ludwig 2025-12-30T17:23:17.344179Z

#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
Amin 2026-01-07T09:24:55.521579Z

I got an answer in the #cider channel https://clojurians.slack.com/archives/C0617A8PQ/p1767611045598409

Samuel Ludwig 2025-12-30T18:07:58.881829Z

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)

tomd 2025-12-30T18:16:49.446199Z

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).

Samuel Ludwig 2025-12-30T21:38:52.667759Z

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

👍 1
tomd 2025-12-31T14:42:37.351949Z

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
tomd 2025-12-31T15:03:36.512779Z

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
Sam 2026-01-02T14:25:01.027559Z

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
Samuel Ludwig 2026-01-02T14:40:42.279849Z

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)