Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2016 14:40
What would you like to do?
;; make wrapping friendly to Clojure/Pixie/Hy
(with-eval-after-load "evil-lisp-state"
;; undef SPC k w so we can generalize it
(evil-leader/set-key "kw" nil)
;; wrap using SPC k w ([{
(evil-leader/set-key "kw("
(lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "(")))
(evil-leader/set-key "kw["
(lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "[")))
(evil-leader/set-key "kw{"
(lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "{"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment