This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-07
Channels
- # admin-announcements (2)
- # boot (111)
- # capetown (5)
- # cider (15)
- # clara (15)
- # cljs-dev (8)
- # clojure (78)
- # clojure-brasil (1)
- # clojure-dev (2)
- # clojure-greece (25)
- # clojure-hk (1)
- # clojure-russia (5)
- # clojure-seattle (1)
- # clojure-spec (120)
- # clojure-sweden (3)
- # clojure-uk (63)
- # clojurescript (161)
- # data-science (1)
- # datomic (21)
- # editors (43)
- # emacs (3)
- # funcool (1)
- # hoplon (72)
- # instaparse (11)
- # jobs (1)
- # off-topic (2)
- # om (212)
- # onyx (9)
- # other-languages (129)
- # proton (5)
- # re-frame (15)
- # reagent (18)
- # slack-help (4)
- # spacemacs (18)
- # untangled (224)
- # yada (21)
@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
@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.
@zane: I mean it uses it’s own keybindings. It doesn’t share like the paredit or smartparens bindings if you already knew them.
anyone had problems with emacs freezing editing markdown?
@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"
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.
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 )))
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
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
oh cool, eval-after-load seems more appropriate