This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-09
Channels
- # announcements (3)
- # aws (2)
- # aws-lambda (15)
- # beginners (38)
- # calva (15)
- # cider (17)
- # cljs-dev (2)
- # clojure (44)
- # clojure-dev (17)
- # clojure-spec (4)
- # clojure-sweden (1)
- # clojure-uk (8)
- # clojurescript (122)
- # cursive (19)
- # fulcro (25)
- # jobs-discuss (12)
- # nyc (3)
- # off-topic (20)
- # reagent (1)
- # rewrite-clj (4)
- # shadow-cljs (11)
- # spacemacs (65)
- # tools-deps (1)
- # vim (3)
5dd seems the best way, but without relative number, its a bit hard to decide the correct number
I'm not sure if some local layer changed it, but da(
is also aliased to dab
, da{
to daB
If you use lispyville, you gain dax
(s-exp), dal
(list), daa
(atom)
These are the Evil/Vim keybindings I seem to use the most https://practicalli.github.io/spacemacs/spacemacs-basics/vim-quick-reference.html
@jr0cket brilliant, thanks!
So, after using only evil, for 2 days. One thing I struggle is that nothing seems as good as Emacs sexp functions for navigating Lisp code.
It seems more focused on freeform text. You can move by word or WORD, by paragraph, and % moves between bracket
lispyville and lispy have changed my life, even with rough corners!
motions that only navigate (e.g. lispyville-forward-sexp
bound to L
) and motions that navigate leaving you already on insert (`lispyville-backward-up-list` bound to (
) are very convenient!
As a heavy user of SPC k ...
mode, I knew I had to do something once I saw a coworker using holy-mode.
It was the same feeling I had when I saw someone using emacs while I was still using Atom.
Haha, okay, so maybe I should try it. Because ya, as I see it, and always when I'm comparing myself to Evil coworkers, I am way more productive in Holy mode when working in Clojure. I can navigate in and out, back and forth, selections, etc. so easily. I'll give lispyville a swirl and see
The installation wasn't super straightforward for an emacs beginner such as myself, so let me know if you'd like the config files!
@U1UQEM078 do you know if someone has built a layer?
@U0G75ARHC I couldn't find one when tried, so I had to (poorly) write my own private layer for it 😞
Basically everything here: https://www.gnu.org/software/emacs/manual/html_node/elisp/List-Motion.html
@didibus some claim that evil-cleverparens layer gives you some nice things, I yet have to try it myself. But as you know - I’m lazy.
also checkout https://github.com/noctuid/lispyville
Also, how long did it take you to become more productive? Cause now I think I'm about 20 times less productive 😛
Be patient… nobody can expect to become fluent in Spanish in just a few days just by reading some Gabriel García Márquez. Also, I think I’ve told you: “you’re gonna hate me for a while”
I don't find SPC k super useful, it takes so long to type SPC k before every move, and lisp-state disapears on Esc, so all insert mode gets you out of it
I’m not a big fan of SPC k either, at some point I’d probably try to find something that works for me better
but it’s easy to extend. Here’s for example how I added SPC k =
operator - it reindents things in current sexp:
(defun sp-reindent ()
(interactive)
(save-excursion
(er/expand-region 2)
(evil-indent (region-beginning) (region-end))))
(evil-lisp-state-enter-command sp-reindent)
(spacemacs/set-leader-keys
"k=" #'evil-lisp-state-sp-reindent))
Well, I meant broken like, isn't Spacemacs supposed to have SPC bound in all states as the leader? Especially since evil-lisp-state is made by the same person, so I was wondering if that's a bug or my config has an issue
Ya, my Emacs is highly customized. But right now I want to make sure I learn the Vi way, before I customize it. That's why I ask first if here are ways I'm just not thinking off before I create custom ones
Lispy seems nice, abo-abo is an awesome Emacs dev too, I love all his packages. But I still think I need to practice pure Vi before I try these Emacs only packages
> isn’t Spacemacs supposed to have SPC bound in all states as the leader you are correct. Maybe there’s a ticket on GH, I don’t know.
There are ongoing discussions of moving evil-lisp-state into its own layer and making it optional, bringing lispyville to Spacemacs, etc. There isn’t a single best option that would work for everyone. That’s why I personally choose not to worry about it hoping that community will fix it for me. Navigating and manipulating sexps is not a highest priority for me right now though.
Hum... Ya, it would be nice to move it to a layer actually, and give people options there.
I love all his packages: Ivy, Avy, Swiper, Counsel, all top notch. Maybe I should try lispy, in his readme, he mentions Vi line editing style isn't very good for Lisp, and I think that's what I'm realizing now. Writing Clojure is my #1 activity so... I'll see
lispyville and lispy have changed my life, even with rough corners!
motions that only navigate (e.g. lispyville-forward-sexp
bound to L
) and motions that navigate leaving you already on insert (`lispyville-backward-up-list` bound to (
) are very convenient!
As a heavy user of SPC k ...
mode, I knew I had to do something once I saw a coworker using holy-mode.
It was the same feeling I had when I saw someone using emacs while I was still using Atom.