This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-29
Channels
- # announcements (6)
- # babashka (23)
- # beginners (15)
- # biff (15)
- # calva (17)
- # clara (5)
- # clj-kondo (41)
- # cljdoc (2)
- # cljs-dev (67)
- # cljsrn (18)
- # clojure (19)
- # clojure-europe (25)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojurescript (26)
- # core-typed (6)
- # cursive (15)
- # data-science (30)
- # datahike (1)
- # datomic (18)
- # docker (6)
- # emacs (10)
- # events (2)
- # graalvm (15)
- # graphql (5)
- # hugsql (4)
- # jobs-discuss (1)
- # joker (7)
- # lsp (36)
- # malli (28)
- # off-topic (46)
- # other-languages (1)
- # pathom (5)
- # pedestal (6)
- # polylith (5)
- # reitit (2)
- # releases (1)
- # rewrite-clj (63)
- # shadow-cljs (7)
- # spacemacs (16)
- # squint (6)
- # tools-deps (6)
- # xtdb (13)
Trying out Spacemacs for the first time. I'm experiencing what looks like a bug or misconfiguration of some sort - when I press ,
it opens a menu with the available key bindings, but some of the descriptions seem to be missing and replaced with +prefix
. Is there something I could do about it?
I'm running the latest develop
and https://pastebin.com/WATaSWpm
Grepping around in the Spacemacs repository, it looks like the command descriptions are defined https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/clojure/packages.el#L78 if I'm not terribly mistaken?
I get the same result.
I get a different set of prefix
ones, eg s
for me says prefix
(but does contain the 'send to repl' commands). So yeah, seems like a bit of a bug.
If it helps, =
is format, g
is goto, h
is documentation, r
is refactoring (some of which doesn't work currently IIRC), and T
is toggle,
Alright thanks! I'm jumping on Spacemacs without any meaningful experience with Emacs, so it's good to know it's looking more like a bug than me having already messed up my setup 😅
I got the descriptions working while resolving another issue I was having. I couldn't get emacs to boot LSP with my project and when calling some of the lsp commands manually I either got a blank buffer or an error message about treemacs-treelib that I initally brushed off as unrelated but it kept reappearing when executing a particular command, so I started googling around for a clue and ran into this https://github.com/doomemacs/doomemacs/pull/6812. Removed everything treemacs-related under my .emacs.d as suggested and rebooted into a working setup Reading further into the clojure layer source, it seems that the missing descriptions have a common link as they https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/clojure/packages.el#L95 and https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/clojure/packages.el#L104 so I guess it was just cross-talk between the involved plugins 🤷
I'm not sure it's a bug. Perhaps =, g, h, r, T are prefixes that don't have names? If you press those keys, do you get meaningful, second-tier menus?
Prefix is an un-named sub-menu, so its not a bug unless that sub-menu is named in the respective Spacemacs layer configuration - menus are typically defined in the packages.el
file in the layer configuration.
Ideally sub-menu's should all have meaningful names and they do so in the Clojure layer (or there is a bug in .Spacemacs (or .spacemacs.d/init.el config).
In the original posting, the .spacemacs file has the Clojure layer added twice, which may cause problems.
Oh, thanks for pointing it out! I seem to have removed the duplicate at some point but can't remember doing that on purpose, maybe it was the problem all along, at least it would seem like an obvious source for the "cross-talk" I was experiencing Also would like to thank you @U05254DQM for the helpful tutorials on Spacemacs. They definitely helped me to commit to learning the editor, coming from a Vim background
cross posting a small question from #emcas bc it might be spacmacs specific. how would you yank and then replace a keyword? I can yank a keyword with space k y (sp-copy-sexp) and there is a evil-insert before and after but not "replace" option.