Skip to content

Instantly share code, notes, and snippets.

@shegeley
Created June 11, 2021 16:23
Show Gist options
  • Save shegeley/449539b4a0dfc3715e0f3c78996df42b to your computer and use it in GitHub Desktop.
Save shegeley/449539b4a0dfc3715e0f3c78996df42b to your computer and use it in GitHub Desktop.
Doom Emacs Paredit Keybindings Customization Example
;; Paredit's bindings set to be called with SPC + l as prefix
(map!
:map paredit-mode-map
:leader (:prefix ("l" . "Lisps")
:nvie "f" #'paredit-forward
:nvie "b" #'paredit-backward
:nie "k" #'paredit-kill-region
:nie "s" #'paredit-splice-sexp
:nie "(" #'paredit-wrap-round
:nie "[" #'paredit-wrap-square
:nie "{" #'paredit-wrap-curly))
@alexispurslane
Copy link

This doesn't work (any longer at least),trying to run any command gives "wrong type argument: commandp, ..."

@shegeley
Copy link
Author

replaced with

;; Smartparens bindings set to be called with SPC + l as prefix
(map!
 :map smartparens-mode-map
 :leader (:prefix ("l" . "Lisps")
          :nvie "f" #'sp-forward-sexp
          :nvie "b" #'sp-backward-sexp
          :nvim "u" #'sp-unwrap-sexp
          :nie "k" #'sp-kill-sexp
          :nie "s" #'sp-split-sexp
          :nie "(" #'sp-wrap-round
          :nie "[" #'sp-wrap-square
          :nie "{" #'sp-wrap-curly))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment