about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-24 23:23:15 -0500
committerCase Duckworth2021-04-24 23:23:15 -0500
commitbfabfcf70ea7787d6882aa081658cfdf07c9d303 (patch)
tree6ab9f3746ebe142cbea41c0bb10d7b77c042eced
parentGet rid of a dumb alias that slows down Emacs (diff)
downloademacs-bfabfcf70ea7787d6882aa081658cfdf07c9d303.tar.gz
emacs-bfabfcf70ea7787d6882aa081658cfdf07c9d303.zip
Fix bindings in paredit-mode-modes
-rw-r--r--init.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.el b/init.el index 362e0e1..7590823 100644 --- a/init.el +++ b/init.el
@@ -836,8 +836,15 @@ if ripgrep is installed, otherwise `consult-grep'."
836 (add-hook (intern (concat (symbol-name mode) "-hook")) #'paren-face-mode))) 836 (add-hook (intern (concat (symbol-name mode) "-hook")) #'paren-face-mode)))
837 837
838(setup (:straight paredit) 838(setup (:straight paredit)
839
840 (defun setup-paredit-mode ()
841 "Correct weirdnesses and set up paredit mode."
842 (paredit-mode +1)
843 (define-key lisp-mode-shared-map (kbd "DEL") #'paredit-backward-delete))
844
839 (dolist (mode lispy-modes) 845 (dolist (mode lispy-modes)
840 (add-hook (intern (concat (symbol-name mode) "-hook")) #'paredit-mode)) 846 (add-hook (intern (concat (symbol-name mode) "-hook"))
847 #'setup-paredit-mode))
841 848
842 (require 'eldoc) 849 (require 'eldoc)
843 (eldoc-add-command 'paredit-backward-delete 'paredit-close-round)) 850 (eldoc-add-command 'paredit-backward-delete 'paredit-close-round))