This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-09
Channels
- # beginners (205)
- # boot (6)
- # cider (22)
- # cljs-dev (41)
- # cljsrn (4)
- # clojure (97)
- # clojure-dev (61)
- # clojure-greece (40)
- # clojure-italy (8)
- # clojure-russia (16)
- # clojure-spec (18)
- # clojure-uk (34)
- # clojurescript (14)
- # community-development (1)
- # cursive (45)
- # datomic (39)
- # fulcro (66)
- # jobs (2)
- # lein-figwheel (1)
- # lumo (9)
- # off-topic (8)
- # parinfer (98)
- # portkey (8)
- # re-frame (81)
- # reagent (54)
- # remote-jobs (17)
- # ring (2)
- # shadow-cljs (217)
- # spacemacs (32)
- # sql (24)
- # test-check (6)
- # unrepl (73)
- # yada (12)
i'm pretty new to spacemacs. i see it supports clojure symbol replacement using clojure-enable-fancify-symbols
which works fine, but is there a way for me to add more symbols to replace such as defn
?
if you look at the source for clojure/fancify-symbols
(which is in funcs.el in the clojure layer)
so presumably you can just call that function directly from your code to add additional symbols
apologies for the newbie questions, but is the standard way of wrapping with parens / brackets, expanding selections, slurping etc really to drop out of insert mode and use the SPC v and SPC k menus? is there a way to stay in insert mode? for instance in cursive i can just ctrl + shift + ( and my current form gets wrapped.
i'm sure it's just me missing some fundamentals (and learning both vim modes and emacs). C + y was only pasting the first letter of what i had on the clipboard but hitting it again seemed to work. thanks!
you're on spacemacs right? near the top of the dotspacemacs-init
function there's a var called dotspacemacs-editing-style
and when I'm in insert most emacs style keybindings are not bound (so C-y
doesn't yank into the buffer, for example)
yup, looks like i'm using vim mode as well. maybe i'll start over with a new spacemacs instance just for good luck.
@joshkh - Regarding wrapping with parens etc, you can do that in insert mode. Try M-m k w
in insert mode, for example. However, those SPC k
commands take you out of insert mode afterward and into the transient state, so you can't really stay in insert mode with those anyway. (Other commands might let you.) I think if that's important to you, other paredit-style editing packages for emacs might serve you better.
Also, in macOS, I have success pasting in insert mode with command-v like with other apps.
thanks for the info. i'll first wrap my head around the default setup before getting crazy with customization. i'm sure the community has put together a great starting point and that i'm just feeling the learning curve of a new editor. on a side note, chris, editing fancify-symbols
worked well for me.
if i want to run multiple Clojure projects whats the way to do that in spacemacs? In intelliji is multi projects. in emacs/spacemacs is it multiple buffers?
@drewverlee projectile works pretty well - although i'm not sure which spacemacs layer is bringing it in to my config
yea. it seems its straight forward it just happend to not work with the directory i was trying to jump into.
projectile-switch-project or something
>if i want to run multiple Clojure projects whats the way to do that in spacemacs?
use layouts aka persps. SPC l
"layouts" and "eyebrowse" are two extremely handy tools, first one you'd use to keep separate context for every project, second - for multiple window configs within a single project