This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # bangalore-clj (1)
- # beginners (104)
- # boot (207)
- # cider (173)
- # cljs-dev (157)
- # cljsjs (1)
- # cljsrn (51)
- # clojure (196)
- # clojure-berlin (1)
- # clojure-chicago (1)
- # clojure-italy (4)
- # clojure-new-zealand (1)
- # clojure-nl (1)
- # clojure-russia (28)
- # clojure-spec (17)
- # clojure-uk (73)
- # clojured (13)
- # clojurescript (110)
- # core-async (4)
- # datascript (25)
- # datomic (92)
- # editors (1)
- # emacs (157)
- # events (4)
- # hoplon (16)
- # klipse (74)
- # lein-figwheel (10)
- # leiningen (2)
- # lumo (13)
- # off-topic (78)
- # om (3)
- # om-next (3)
- # onyx (14)
- # protorepl (1)
- # re-frame (17)
- # reagent (23)
- # remote-jobs (1)
- # ring-swagger (33)
- # schema (2)
- # slack-help (3)
- # spacemacs (7)
- # testing (1)
- # yada (7)
This is not specific to Clojure, but those of you who want to try org-mode for the first time may find this useful: http://beppu.github.io/post/org-mode-basics/
I discovered that one evening while talking to @qqq about imenu. There are so many little gems hidden in Spacemacs.
beppu: this is why you should answer as many of my questions as possible -- you learn new, unexpected, and awesome features 🙂
I'm still on evil lisp state. I haven't tried the others. Didn't even know about them, tbh.
if you enable it, you can
dd lines or
d regions while keeping parentheses balanced
it's so useful that it's surprising to me that spacemacs doesn't come with it enabled by default
Maybe they don't know? I'm relatively new to the Emacs universe having been a vim user for 15+ years, so there's so much I don't know.
Curious how spacemacs users edit lisp? I never used vim but tried evil a few times, and just gave up after trying to write some clojure and elisp
In paredit you might have to
M-C-S-something but it’s more like one keystroke since you do it over and over, in that lisp state it like “SPC l k j” or whatever and now i need to repeat “l k j” ?
@jfntn no it has this "state" (the little bar goes pink) where keystrokes are interpreted as lisp-state movements
Do you know about
SPC s w g and
SPC s w w ? Google Search and Wikipedia Search (with autosuggest via helm)
@jfntn I'm surprised you don't use cider-eval-buffer, opting for the finer-grained cider-eval-last-sexp and cider-eval-defun-at-point. (I guess Spacemacs makes cider-eval-buffer easier, so I end up using it more.)
, s b.
@pesterhazy There's some other crazy stuff under
s that the guys in the Spacemacs gitter channel showed me.
Go into a Clojure project and type
SPC s p and then search for a common string like "defn". This is a normal project-wide search. However.... then type
ivy does that too it’s really cool, though for clojure clj-refactor is way better when it works
@beppu I only have commands matching lispy and sexp in that list, I use cider-load-buffer usually
@pesterhazy Did you know you could add command line arguments to your ag searches? For example, search for a string and then add
-C to the query to give you context.
I started with ack. I only just recently installed ag. Can't believe I have to upgrade again.
someone should take this and put it in a wiki somewhere, lots of knowledge, would be sad for it to disappear
my achievements for the day:
(evil-global-set-key 'normal ";" 'mark-sexp) (evil-global-set-key 'visual ";" 'mark-sexp) (evil-global-set-key 'normal "U" 'backward-up-list) (evil-global-set-key 'normal "R" 'down-list) (evil-global-set-key 'normal "F" 'forward-sexp) (evil-global-set-key 'normal "B" 'backward-sexp)
lispy-flow is kind of an odd one, it goes down the sexp tree inwards but tries to not get stuck in a leaf and moves back up and down again, kinda hard to explain and not sure I totally understand it but you quickl build an intuition for it
I found the best help for my lisp skills -- was purchasing an kinesis advantage pro keyboard. It gives room for modifier keys, and thus shorter bindings.
http://www.anandtech.com/show/7125/kinesis-advantage-review-longterm-evaluation <-- for example, hitting the "END" key (right next to the DELETE key) with the thumb, makes hjkl all paredit comands
@pesterhazy : I'd love to know of any keybindings you have that exploit the kinesis design.
The main emacs usability improvement for me is to map the cmd keys on the mac to ctrl, and the caps lock key to meta
I can not believe we have a number of adults, supposedly with professional jobs, talking about keyboards and key bindings.
there's a saying that you can tell professional photographers because they'll talk about shoes; amateurs talk about cameras
and what you care about in cameras is that they don't fall apart when they get wet or dropped
(I didn't realize until now that the emacsrocks guy and the parens of the dead guy were the same.)
this is borderline heresey, but is there a evil-normal-mode optimized for LISPY interaction ?
I'm quite fond of the default spacemacs-dark. I also like gruvbox from time to time (from the spacemacs themes-megapack (http://themegallery.robdor.com/))