From 7bee3489efdcaa2002c294bf9bf18f02cc9218f2 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 4 May 2021 09:10:36 -0500 Subject: Add slime-repl-return-at-end Get the benefits of paredit with easy keys in the REPL! --- init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.el b/init.el index 934f3db..5452a0d 100644 --- a/init.el +++ b/init.el @@ -770,6 +770,17 @@ if ripgrep is installed, otherwise `consult-grep'." "~/var/quicklisp/slime-helper.el")))) (load slime-helper)) + (define-key slime-repl-mode-map (kbd "RET") #'slime-repl-return-at-end) + (define-key slime-repl-mode-map (kbd "") + #'slime-repl-return-at-end) + + (defun slime-repl-return-at-end () + (interactive) + (if (<= (point-max) (point)) + (slime-repl-return) + (slime-repl-newline-and-indent))) + + (with-eval-after-load 'company (setup (:straight slime-company) (:option slime-company-completion 'fuzzy -- cgit 1.4.1-21-gabe81