Fork me on GitHub
#spacemacs
<
2017-08-06
>
ag05:08:09

@neeasade what do you mean? develop doesn't get released. Maintainers just merge whatever they see fit. Couple of things you can do to track things: a) keep an eye on PRs. You can sort them by recently updated https://github.com/syl20bnr/spacemacs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc. If you want something that you'd be interested in being merged sooner, you can ask directly in PR discussion or in Spacemacs's Gitter channel b) whenever you pull the latest, you can check what exactly got updated. Essentially it is this command: git log --oneline --abbrev-commit ORIG_HEAD..HEAD

ag05:08:36

Also note that Spacemacs has official Changelog (things that get released into the master branch). To view it right in Spacemacs, you can press SPC f e i then SPC p f

dominicm13:08:06

How would I yank the symbol/form I am on? or the outer set of parens? There seems to be a special yank for lisp or something?

dominicm13:08:03

Can I use a text object as a region maybe? (Then I'd need a text object for lisp things)

Sam H14:08:14

are you using evil mode?

Sam H14:08:55

I usually just do ya(

Sam H14:08:27

pretty much what ever you’d do in VIM

dominicm14:08:05

yes, evil mode.

eggsyntax14:08:05

Also the evil-cleverparens project will give you text objects for forms, comments, defns. I don’t use it because it steps on too many of my (somewhat idiosyncratic) key-bindings, but seems like it’d be good for most folks.

dominicm14:08:53

Is there an eval operator I could use with those text objects?

eggsyntax14:08:05

I get that from CIDER, personally. SPC m e gets you to eval-form and related.

eggsyntax14:08:41

Alternately, SPC m s lets you send forms etc to the REPL.

eggsyntax14:08:56

cider-eval-last-sexp is slightly imperfect IMO because it requires that you be at least 1 character past the sexp; being on the closing paren doesn’t work.

eggsyntax14:08:18

I use it all the time; just mentioning because it sometimes confuses people at first.

eggsyntax14:08:03

(of course you need to be connected to a REPL for those to work; cider-jack-in-clojure is usually the simplest way.

dominicm14:08:05

@eggsyntax so I couldn't use it with evil-cleverparens' af, ad, etc.

eggsyntax14:08:34

I don’t think so, no, although I haven’t tried.

dominicm14:08:04

Feels un-vimlike to not have operators & objects which I combine together.

eggsyntax14:08:09

There’s an eval-region, so if you highlighted first using af etc, that might work.

eggsyntax14:08:50

Just confirmed that that works.

dominicm14:08:20

vaf then eval-region?

eggsyntax14:08:29

(not with af specifically; I used va()

dominicm14:08:35

sure. A little idiosyncratic to true Vim I guess. I suppose most users are looking for vim-style navigation & modal transition rather than the operator/text object principle.

dominicm14:08:11

The evil-cleverparens does help somewhat, although I do note that a few text objects I'd expect are missing, e.g. symbol (or I guess 'word' is expected to be set to a symbol/keyword/etc. matching regex) and element (if I'm on a paren, use form, else do a symbol)

pesterhazy14:08:36

I have a "symbol" motion in spacemacs

dominicm14:08:26

ah okay, useful. So the clever thing is what I'm really missing then I guess. vim-sexp has a really nice concept of an element, it also matches strings if you're inside one of them.

Sam H14:08:01

I mostly use msf to send the function to the repl.

Sam H14:08:42

doing any *-last-sexp-* type stuff when you’re in evil mode is a bit awkward as you need to be fully on the next char and can’t be on the last bracket that completes the form

pesterhazy16:08:04

@dominicm you know about SPC v v v v v right?

Sam H18:08:09

ah that’s nice 👍

pesterhazy16:08:25

I miss that a lot when I got back to vim

dominicm16:08:29

I do not, checking it out now

dominicm16:08:19

@pesterhazy That is rather cool

dominicm16:08:39

https://github.com/terryma/vim-expand-region although you can have it when you use vim too 😉

pesterhazy16:08:50

great, an idea worth spreading

dominicm16:08:35

I'm somewhat here for the cross-pollination of ideas into my workflow 🙂

claudiu16:08:07

Does anyone have any idea why I keep getting some portions of some files with bold light green 😞 ?

eggsyntax18:08:58

@dominicm “I suppose most users are looking for vim-style navigation & modal transition rather than the operator/text object principle.” I’m surprised to hear you say that; I think of operator -> text-object as about the most vimmy thing there is. As described eg in: https://yanpritzker.com/learn-to-speak-vim-verbs-nouns-and-modifiers-d7bfed1f6b2d

eggsyntax18:08:49

That said, I really do wish you could use eval as a verb in exactly that sense, so you could do, eg, eval-around-parens or eval-line rather than visual-around-parens/`eval-region`.

eggsyntax18:08:23

suddenly suspects there may be a way to write an emacs lisp function to do exactly that…

dominicm18:08:59

@eggsyntax I agree, it's a pillar of vim. However, I spent a year or two without really grokking the text object / operator usefulness, I suspect that applies to others too. Otherwise, there'd be more users demanding this exact kind of thing. I got plenty of value from just the navigation parts myself, even if I was fumbling compared to my current abilities.

eggsyntax22:08:19

I spent more years than I care to admit not really grokking it 😜 . It was really that Pritzker article that made me truly get it for the first time.