This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-15
Channels
- # announcements (2)
- # aws (52)
- # beginners (326)
- # cider (24)
- # clara (7)
- # clj-kondo (14)
- # cljs-dev (175)
- # clojure (183)
- # clojure-ecuador (2)
- # clojure-europe (4)
- # clojure-italy (11)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-spec (5)
- # clojure-sweden (5)
- # clojure-uk (103)
- # clojurescript (49)
- # cursive (29)
- # data-science (9)
- # datascript (17)
- # datomic (23)
- # emacs (6)
- # events (4)
- # fulcro (19)
- # graalvm (8)
- # graphql (2)
- # hoplon (36)
- # jobs (1)
- # jobs-discuss (92)
- # juxt (3)
- # luminus (10)
- # off-topic (4)
- # pedestal (8)
- # planck (1)
- # re-frame (59)
- # reagent (1)
- # reitit (22)
- # rewrite-clj (8)
- # ring-swagger (3)
- # shadow-cljs (101)
- # spacemacs (15)
- # tools-deps (36)
- # vim (68)
Does anyone have good tips for replacing the "fn" with the similar "pretty symbols" on emacs?
I see one can do this: https://vi.stackexchange.com/questions/10960/displaying-terms-as-single-character-unicode-symbols-in-vim
Conceal is definitely what you are after, I recall seeing a conceal plugin like this, but I don't recall it's name
Fonts with ligatures also works in some editors/terminals: https://github.com/tonsky/FiraCode
hi all, Can someone explain how I can eval the last symbol or sexp before the cursor with fireplace? (I would use C-c C-e in emacs). For example,,,
(+ 1 1) CURSOR
If you have vim-sexp you could do cp<M-b>
Usually I just move the cursor the closing paren and cpp
@snoe Thx! will try it out. ...the problem is mainly if I need to eval a symbol with no parens, like an atom.
I've been having a lot of trouble with vim-sexp, where I open parens, type some stuff, and then for some reason delete the closing parens, I can't input another because even in insert-mode, pressing )
moved the cursor to the end of the form
I had to stop using it (and stopped using paredit for similar reasons) because it's super annoying lol
Yes, tried both paredit / parinfer in emacs and both did more harm than good. Didn't invest the time into learning either properly
@nbtheduke I run into this as well, I usually cut and paste a paren from somewhere else (`x` and then p
)
i had it happen like 4 times yesterday, lol
was driving me nuts
maybe i just edit in the wrong way!
I found the combo of parinfer-rust plugin and vim-sexp (with tpope's add-on) worked really well. I like "smart" mode parinfer. It lets me just line 'em up if I need to get a handle on it manually and it just works.
i think i'm used to the workflow of pressing i
then typing (str
in front of a string I want to add stuff to, and then pressing ESC
and shift-A
to enter insert mode at the end of the line to type )
feels backward to move to the "
, type ysa")
then i
then type str
like in that scenario, i would visually select the word i want to surround with parens, and do S)
to surround it with parens
yeah, if it's a single word that's chill, but when it's a long string, it's tough
lol again, maybe i'm just bad at editing
that does also select the space before the string, though, for some reason :thinking_face:
yeah, i love vim-surround! it's one of my faves
i think i'd have a hard time re-training my fingers, which have the vim-surround mappings ingrained
interesting, when I want to add (str ...)
around something, I hit ,i
and it wraps in parens and puts my cursor in the right place to type str
which plug-in is that?
man, there is a ton of stuff in there that is useful https://github.com/guns/vim-sexp