This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-18
Channels
- # 100-days-of-code (10)
- # announcements (2)
- # aws (3)
- # beginners (120)
- # boot (6)
- # calva (6)
- # cider (22)
- # cljsrn (3)
- # clojure (145)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-nl (24)
- # clojure-russia (90)
- # clojure-spec (21)
- # clojure-uk (80)
- # clojurescript (175)
- # core-async (1)
- # datomic (17)
- # emacs (8)
- # ethereum (5)
- # figwheel (1)
- # figwheel-main (140)
- # fulcro (137)
- # jobs (6)
- # jobs-discuss (3)
- # luminus (3)
- # mount (1)
- # nyc (3)
- # off-topic (39)
- # onyx (1)
- # pedestal (1)
- # re-frame (21)
- # reagent (13)
- # shadow-cljs (60)
- # spacemacs (25)
- # test-check (4)
- # tools-deps (14)
- # uncomplicate (3)
- # vim (18)
hey, anyone who uses lispy/lispyville here?
I am trying to enable lispy-pair
and lispy-quote
https://github.com/noctuid/lispyville#relationship-with-lispy
but no luck so far, please advice
thanks!
I haven't tried using them, sorry.
no worries
@kirill.salykin as lispy does what Spacemacs Evil mode and clever-parens already does, you make have to make significant changes to Spacemacs. You should probably create your own clojure layer too. I could be wrong, but it sounds like a big task. I suggest discussing this kind of change in the Spacemacs gitter channel with the project maintainers to get a sense of whats involved.
I don’t want all lispy, just lispy-pair
and lispy-quote
Sorry, I dont know what those two functions do and they dont seem to be in the lispyville.el
file.
I think they are part of lispy… as lispyville says - you should bind it yourself, but I have no idea how…
anyway, thanks
are you just asking how to do a keybinding for a function?
I think so…
what I want is to run lispy-pair
in insert mode on (
basically thats it
and lispy-quote
in insert mode whtn "
pressed
https://github.com/abo-abo/lispy/blob/master/lispy.el#L9031 onwards has lots of examples of defining a keybinding in lispy. You could add the bindings to your own local copy of lispy and load that
thanks! will have a look
or you can add to the dotspacemacs/user-config
section of .spacemacs
as in the following examples https://gist.github.com/jr0cket/01e2a8a9bf85d28d5782820e8e2891a3#file-spacemacs-el-L494
this was my idea
thanks!
if needed, you can also add your own functions there, in case you needed a wrapper function or copy something across from lispy https://gist.github.com/jr0cket/01e2a8a9bf85d28d5782820e8e2891a3#file-spacemacs-el-L723
(evil-define-key 'insert 'global "(" 'lispy-parens)
(evil-define-key 'insert 'global "[" 'lispy-brackets)
(evil-define-key 'insert 'global "{" 'lispy-braces)
(evil-define-key 'normal 'global "\"" 'lispy-quotes)
(evil-define-key 'visual 'global "\"" 'lispy-quotes)
(evil-define-key 'insert 'global "\"" 'lispy-quotes)
this worked for me
thanks a lot!