Created
June 11, 2021 16:23
-
-
Save shegeley/449539b4a0dfc3715e0f3c78996df42b to your computer and use it in GitHub Desktop.
Doom Emacs Paredit Keybindings Customization Example
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
;; 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)) |
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
This doesn't work (any longer at least),trying to run any command gives "wrong type argument: commandp, ..."