Created
April 7, 2016 14:40
-
-
Save emidln/82fbda84c332edb657a6eb853f78e4dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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