all repos — nixfiles @ 011f317d2faf190cfdd4074e1ada771acab4c975

System and user configuration, managed by nix and home-manager

Emacs: Remove electrify-return-if-match and replace with paredit keybindings in lisp-modes

Alan Pearce
commit

011f317d2faf190cfdd4074e1ada771acab4c975

parent

883b3a15157eca87580006c4a004a8e46b075e2c

1 file changed, 1 insertion(+), 6 deletions(-)

changed files
M emacs/init.elemacs/init.el
@@ -786,9 +786,6 @@ (add-hook 'prog-mode-hook #'autopair-mode)
(setq autopair-blink nil autopair-skip-whitespace nil))) -(use-package electric-return - :bind (("RET" . electrify-return-if-match))) - (use-package expand-region :bind ("C-M-SPC" . er/expand-region))
@@ -855,9 +852,7 @@ (setq lisp-body-indent 2)))
(show-paren-mode t) (setq indent-tabs-mode nil) - - (local-set-key (kbd "RET") 'electrify-return-if-match) - (local-set-key (kbd "C-j") 'electrify-return-if-match)) + (local-set-key (kbd "RET") #'paredit-newline)) (add-hook 'emacs-lisp-mode-hook #'ap/lisp-setup) (add-hook 'emacs-lisp-mode-hook #'turn-on-eldoc-mode)