Skip to content

Instantly share code, notes, and snippets.

@emidln
Created April 7, 2016 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emidln/82fbda84c332edb657a6eb853f78e4dd to your computer and use it in GitHub Desktop.
Save emidln/82fbda84c332edb657a6eb853f78e4dd to your computer and use it in GitHub Desktop.
;; 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