This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-21
Channels
- # arachne (1)
- # aws-lambda (50)
- # beginners (10)
- # boot (59)
- # capetown (4)
- # cider (9)
- # cljsjs (27)
- # clojure (249)
- # clojure-berlin (8)
- # clojure-finland (7)
- # clojure-germany (1)
- # clojure-italy (6)
- # clojure-nl (7)
- # clojure-russia (91)
- # clojure-spec (100)
- # clojure-uk (61)
- # clojureremote (2)
- # clojurescript (171)
- # core-async (11)
- # cursive (31)
- # data-science (1)
- # datascript (2)
- # datomic (11)
- # dirac (2)
- # emacs (16)
- # events (1)
- # hoplon (142)
- # juxt (4)
- # lein-figwheel (9)
- # leiningen (10)
- # luminus (7)
- # lumo (44)
- # mount (3)
- # off-topic (150)
- # om (18)
- # onyx (5)
- # perun (12)
- # planck (12)
- # protorepl (13)
- # re-frame (28)
- # reagent (8)
- # ring (1)
- # ring-swagger (10)
- # spacemacs (2)
- # specter (11)
- # sql (14)
- # untangled (99)
- # vim (18)
- # yada (2)
In emacs, I want to autocomplete
:new-vec2 ==> (q :vec2 :x :y)
:new-bbox ==> (q :bbox :x1 :x2 :y1 :y2)
:new-student ==> (q :student :name :age :gender)
this is a bit problematic because the thing I type ":new-vec2" is NOT a prefix of the completion string "(q :vec2 :x :y)"
Thus, what package can I use to make this work?does emacs itself provide a filter cmd? I did C-h filter, but the result at top is
-filter // from dash.el
-- is there no emacs builtin 'filter' ?
I have (global-set-key (kbd "C-c r") 'cider-repl-reset) in my init.el, but everytime I start up emacs the keycombo "C-c r" is bound to revert file instead. After I eval the global-set-key everything is fine again. Is there a way to make this work on startup?
@thegeez: easier solution may be to bind C-c r in clojure mode, since I believe local mode has precedence over global mode
@qqq does that require a different set-key command or put the line in a clojure-mode.el or something like that?
@thegeez: I have something like the following:
(defun my-clojure-setup ()
...
(define-key clojure-mode-map (kbd "C-x C-e") 'lisp-eval-last-sexp))
(add-hook 'clojure-mode-hook #'my-clojure-setup))
@mgrbyte: yeah, my mistake was failing to realize read-from-string returns a cons cell of ( actual content . offset ), thus the need for the first/car, which I missed; thanks!
Warning for CIDER users who use cider-jack-in-clojurescript
and define cider-cljs-lein-repl
in a .dir-locals.el
file: I just spent way too long beating my head against this bug: https://github.com/clojure-emacs/cider/issues/1938
For now, you can move cider-cljs-lein-repl
into your personal config, or call it at runtime, or manually apply the patch.