Fork me on GitHub
#spacemacs
<
2015-11-13
>
reefersleep17:11:35

One of the reasons that I installed spacemacs after having been a Vim user and Clojure dabbler was because I was interested in the sexp-editing capabilities of Emacs. It has been a bit overwhelming getting used to the many modes and options of spacemacs simple_smile I've only managed to teach myself one lisp-mode command before I learned that there are in fact several options to choose from: paredit, lisp-mode, lispy, and now, parinfer is also on the way. And possibly, there are more. Does anyone know of a comparative review of the different modes, or maybe someone could just sum up what the differences are? I have no idea where to go first, and since learning the new key commands for spacemacs has been hard enough, I'm hoping not to waste too much time and effort going in the wrong direction.

reefersleep17:11:46

I really dig basic Vim and still use Vim for raw text editing.

erik_price17:11:46

I’m also a new-to-spacemacs user coming from Vim. Overwhelming is a good way of putting it, but I’ve found just exploring the menus with Helm here and there when I have time to be useful. I haven’t really tried messing with the parens plugins yet, I’m just working with the defaults for now.

erik_price17:11:59

Though I’ve had to disable a couple minor things that annoyed me.

erik_price17:11:33

I just realized that was an entirely unhelpful response to your questions, except for the purpose of commiseration.

reefersleep17:11:41

That's alright

reefersleep17:11:45

What did you disable?

reefersleep17:11:08

One thing I wish I could disable was the slowness. Vim is extremely snappy in comparison.

erik_price17:11:31

I just realized it’s only one thing:

evil-want-fine-undo nil
though I also want to disable the “automatically provide a closing quotation mark when typing the first one” feature of smartparens.

erik_price17:11:57

Yeah, the slightly worse responsiveness is something I noticed too.

reefersleep17:11:43

Hm, from what I read, I don't understand that option. I've only ever used undo in normal mode in Vim.

reefersleep17:11:02

But from what I read, with that option you can have undos whilst in insert mode?

erik_price17:11:35

Answering my own concern, this seems to be how to disable the smartparens for quotes and doublequotes:

(sp-pair "'" nil :actions :rem)
  (sp-pair "\"" nil :actions :rem)

erik_price17:11:58

setting evil-want-fine-undo nil makes undos in insert mode behave more like Vim's

reefersleep17:11:31

So... How do you undo in insert mode in Vim?

erik_price17:11:49

if you don’t explicitly set it to nil, it behaves more like Emacs’s, which I guess uses some sort of keystroke listener to decide when an “undo break” should appear.

erik_price17:11:24

Try this in spacemacs – in the scratch buffer, insert some text and don’t go back to normal mode. Wait a few seconds, then insert some more text. Now go back to normal mode and hit u. In Vim, it would undo everything.

erik_price17:11:37

In spacemacs, it only undoes the most recent text.

erik_price17:11:42

I like the Vim way better.

reefersleep17:11:57

Ah, so Vim works the way I thought. phew

erik_price17:11:04

yeah vim is still vim simple_smile

reefersleep17:11:28

I need to disable that too.

reefersleep17:11:39

When I open spacemacs and open a new file, if I p, for some reason the clipboard (or whatever it's called) always contains a form with a number inside it

reefersleep17:11:45

like (0.104.2)

reefersleep17:11:51

Do you know why?

erik_price17:11:40

wow. I never noticed that before, but it happens for me too.

reefersleep17:11:42

and if I create a new .clj file in windows and open it with spacemacs, it has (ns ) at the top. Weird.

erik_price17:11:06

i assume the ns part of the clojure major mode

erik_price17:11:37

Something must be overwriting the paste buffer when Emacs initializes itself.

erik_price17:11:42

to add that (0.104.2)

reefersleep17:11:47

Anyhow. A different reason that I chose to install spacemacs was because I found the "everything and the kitchen sink" possibilities intrigueing, so I guess I'll just slog through the confusion for a while simple_smile

malch17:11:19

@reefersleep: I’m using spacemacs + paredit + lispy 😃

malch17:11:36

And it mostly works

jeff.terrell17:11:35

The clipboard (which I think emacs calls a kill ring) having stuff in it when opening a new file sounds like a Spacemacs bug to me. The Spacemacs gitter might be able to tell you more authoritatively.

jeff.terrell17:11:55

@erik_price: Nice to know about sp-pair, thanks!

jeff.terrell17:11:50

@reefersleep: You know about the SPC k menu for parenthesis (and similar) operations, right? Just checking.

erik_price17:11:30

Most helpful commands for me have been SPC h d f and SPC h d k.