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?
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 filesThis 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
I got an answer in the #cider channel https://clojurians.slack.com/archives/C0617A8PQ/p1767611045598409
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).
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 🤞
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.
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.
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)