diff options
author | Case Duckworth | 2021-05-04 09:10:36 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-04 09:10:36 -0500 |
commit | 7bee3489efdcaa2002c294bf9bf18f02cc9218f2 (patch) | |
tree | 3d2158f04bfbc1766427c8c6aa25e401eccb6447 | |
parent | Add `dos2unix' (diff) | |
download | emacs-7bee3489efdcaa2002c294bf9bf18f02cc9218f2.tar.gz emacs-7bee3489efdcaa2002c294bf9bf18f02cc9218f2.zip |
Add slime-repl-return-at-end
Get the benefits of paredit with easy keys in the REPL!
-rw-r--r-- | init.el | 11 |
1 files changed, 11 insertions, 0 deletions
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'." | |||
770 | "~/var/quicklisp/slime-helper.el")))) | 770 | "~/var/quicklisp/slime-helper.el")))) |
771 | (load slime-helper)) | 771 | (load slime-helper)) |
772 | 772 | ||
773 | (define-key slime-repl-mode-map (kbd "RET") #'slime-repl-return-at-end) | ||
774 | (define-key slime-repl-mode-map (kbd "<return>") | ||
775 | #'slime-repl-return-at-end) | ||
776 | |||
777 | (defun slime-repl-return-at-end () | ||
778 | (interactive) | ||
779 | (if (<= (point-max) (point)) | ||
780 | (slime-repl-return) | ||
781 | (slime-repl-newline-and-indent))) | ||
782 | |||
783 | |||
773 | (with-eval-after-load 'company | 784 | (with-eval-after-load 'company |
774 | (setup (:straight slime-company) | 785 | (setup (:straight slime-company) |
775 | (:option slime-company-completion 'fuzzy | 786 | (:option slime-company-completion 'fuzzy |