Fork me on GitHub
#spacemacs
<
2016-07-07
>
kasuko12:07:56

@zane: I also hated the amount of keystrokes to get into lisp mode for spacemacs. I installed the layer evil-cleverparens and haven’t looked back. https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bvim/evil-cleverparens

kasuko12:07:16

It’s new keybindings but I really like them.

akiva13:07:30

Interesting. I might have to give that a go this weekend. [adds Omnifocus task]

zane14:07:20

@kasuko: Ooh, yeah. I'm using evil-cleverparens. When you say that it has new keybindings what do you mean, though? I'm not seeing any new bindings.

kasuko14:07:50

@zane: I mean it uses it’s own keybindings. It doesn’t share like the paredit or smartparens bindings if you already knew them.

zane15:07:40

You mean like d d, d $, etc? The regular vim keybindings?

kasuko15:07:54

or like > for slurping

alandipert18:07:40

anyone had problems with emacs freezing editing markdown?

gowder18:07:59

@eggsyntax: do you know what the deal is with making that word tweak only attempt to load with relevant modes? I'm using the clojure-mode tweak mentioned in the comments to that blog post, and it works fine when I open emacs with a clojure file, but when I open with an empty buffer it throws the error "Symbol's value as variable is void: clojure-mode-syntax-table"

eggsyntax18:07:57

I had the same problem. I suspect it's trying to modify the syntax table before the clojure layer has been loaded. I just fell back to the original (emacs-lisp-mode-syntax-table), since it's rare for me to be working in any other lisp mode.

eggsyntax18:07:18

^ that suspicion is just a guess, though, I didn't spend any time investigating.

gowder19:07:15

Wait a min, I think I've solved it. Apparently this is what with-eval-after-load is for. So:

(with-eval-after-load 'clojure-mode (dolist (c (string-to-list ":_-?!#*"))
                                        (modify-syntax-entry c "w" clojure-mode-syntax-table )))

alandipert19:07:41

could also do (add-hook 'clojure-mode-hook '(lambda () ... anything you want to eval in clojure mode ...)) not sure if it's the same effect

gowder19:07:42

(ugh that indenting has to go next.)

gowder19:07:53

hmm. interesting: this SO suggests the difference is that hooks are per-buffer as opposed to per session once a mode is loaded. http://stackoverflow.com/questions/2736087/eval-after-load-vs-mode-hook

alandipert19:07:14

oh cool, eval-after-load seems more appropriate