A set of Doom Emacs mappings for manipulating parentheses and sexps
;; ~/.doom.d/packages.el
(package! doom-parents
:recipe (:host github :repo "tomekw/doom-parents"))
;; ~/.doom.d/config.el
(use-package! doom-parents)
and then:
$ doom sync
-
Wrap sexp in round parentheses
SPC
-c
-p
-(
-
Wrap sexp in square parentheses
SPC
-c
-p
-[
-
Wrap sexp in curly parentheses
SPC
-c
-p
-{
-
Copy sexp
SPC
-c
-p
-y
-
Kill sexp
SPC
-c
-p
-d
-
Raise sexp
SPC
-c
-p
-r
-
Push parenthesis to the right
SPC
-c
-p
->
-)
-
Push parenthesis to the left
SPC
-c
-p
-<
-(
-
Pull parenthesis from the right
SPC
-c
-p
-<
-)
-
Pull parenthesis from the left
SPC
-c
-p
->
-(