This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-17
Channels
- # announcements (1)
- # babashka (26)
- # beginners (28)
- # biff (8)
- # calva (45)
- # cider (62)
- # clara (3)
- # clj-kondo (34)
- # cljfx (1)
- # clojure (72)
- # clojure-belgium (1)
- # clojure-canada (13)
- # clojure-conj (2)
- # clojure-dev (3)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-uk (8)
- # clojurescript (10)
- # clr (36)
- # core-logic (13)
- # cursive (2)
- # datalevin (2)
- # datomic (23)
- # fulcro (13)
- # graphql (23)
- # instaparse (1)
- # introduce-yourself (4)
- # jobs (1)
- # jobs-discuss (13)
- # lsp (30)
- # luminus (7)
- # malli (2)
- # off-topic (57)
- # polylith (13)
- # portal (5)
- # reagent (32)
- # reitit (6)
- # remote-jobs (1)
- # shadow-cljs (25)
- # xtdb (12)
has the repl broken for anyone else? My STR: 1. Start a repl with cider-jack-in in a project 2. when the repl prompt appears type 1 and hit enter
in the repl buffer can you type m-x describe-key
and then press enter? Want to see what [RET]
is bound to in your repl
its possible it is sending a newline and not “hey CIDER eval this input” so you’re not seeing a hanging repl but a waiting repl
that’s actually my preferred setup. enter enters newlines so i can easily make multi-line stuff. control-j sends the input
@UPEKQ7589 thanks
(use-package cider
:bind (:map cider-mode-map
("C-c M-p" . cider-pprint-eval-last-sexp)
:map cider-repl-mode-map
("C-c M-o" . cider-repl-clear-buffer)
("C-c M-l" . cider-repl-switch-to-other))
:config
(require 'bind-key)
(add-hook 'cider-repl-mode-hook #'company-mode)
(add-hook 'cider-mode-hook #'company-mode)
;; (setq org-babel-clojure-backend 'cider)
)
completion-at-point-functions is a variable defined in 'minibuffer.el'.
Its value is (cider-complete-at-point t)
Local in buffer core.clj; global value is
(tags-completion-at-point-function)
@UPEKQ7589 is corfu generally preferred over company by most emacs users these days, or mainly just by cider users?
I don’t know if I’m really any sort of authoritative source here. I’ve seen corfu usage mirror the use of the vertico/marginalia/consult stack
I doubt the lack of completion is from Emacs side, probably Cider not returning the candidates
I think corfu is just better integrated into emacs existing code completion utilities (completion-at-point)
From their README,
Corfu is a small package, which relies on the Emacs completion facilities and concentrates on providing a polished completion UI.
That emphasis comes from me. You’re welcome to read more about it https://github.com/minad/corfu
Seems the only difference with company is that Corfu takes over completion-at-point
, I'm not sure I agree that's a good thing, Corfu monkey patches Emacs it seems, so that completion-at-point no longer behaves as standard, but is taken over by corfu. Is that really better?
Company automatically includes all results from Emacs standard completion, so its compatible with all standard Emacs completions as well. It probably is a bit of a personal preference matter. Thanks for showing it to me. I use spacemacs, so anyways I probably just need to wait for it to decide to switch
Have someone passed through a similar situation with shadow-cljs? https://clojurians.slack.com/archives/C6N245JGG/p1673990569056019