diff options
-rw-r--r-- | init.el | 9 |
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)) |