diff options
author | Case Duckworth | 2021-04-04 23:09:50 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-04 23:09:50 -0500 |
commit | 4f2090bce73ad91a64417e5ae7268fe5a33b3e4e (patch) | |
tree | 04ac296944ceeda96352caacfcc8f99a6fad07c9 | |
parent | Fix outshine comment leaders (diff) | |
download | emacs-4f2090bce73ad91a64417e5ae7268fe5a33b3e4e.tar.gz emacs-4f2090bce73ad91a64417e5ae7268fe5a33b3e4e.zip |
Fix paredit-mode bindings
<backspace> was being shadowed by `smart-hungry-delete'.
-rw-r--r-- | init.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/init.el b/init.el index 3cc4edc..489edbd 100644 --- a/init.el +++ b/init.el | |||
@@ -819,10 +819,12 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
819 | lisp-interaction-mode-hook | 819 | lisp-interaction-mode-hook |
820 | scheme-mode-hook)) | 820 | scheme-mode-hook)) |
821 | (add-hook hook #'enable-paredit-mode)) | 821 | (add-hook hook #'enable-paredit-mode)) |
822 | (:hook (defun hook--paredit-disable-electric-pair () | 822 | (add-hook 'paredit-mode-hook |
823 | (electric-pair-local-mode -1))) | 823 | (defun hook--paredit-disable-electric-pair () |
824 | (electric-pair-local-mode -1))) | ||
824 | (require 'eldoc) | 825 | (require 'eldoc) |
825 | (eldoc-add-command 'paredit-backward-delete 'paredit-close-round)) | 826 | (eldoc-add-command 'paredit-backward-delete 'paredit-close-round) |
827 | (:bind "<backspace>" paredit-backward-delete)) | ||
826 | 828 | ||
827 | ;;;;; Emacs lisp | 829 | ;;;;; Emacs lisp |
828 | (setup elisp-mode | 830 | (setup elisp-mode |