summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-05-04 09:10:36 -0500
committerCase Duckworth2021-05-04 09:10:36 -0500
commit7bee3489efdcaa2002c294bf9bf18f02cc9218f2 (patch)
tree3d2158f04bfbc1766427c8c6aa25e401eccb6447 /init.el
parentAdd `dos2unix' (diff)
downloademacs-7bee3489efdcaa2002c294bf9bf18f02cc9218f2.tar.gz
emacs-7bee3489efdcaa2002c294bf9bf18f02cc9218f2.zip
Add slime-repl-return-at-end
Get the benefits of paredit with easy keys in the REPL!
Diffstat (limited to 'init.el')
-rw-r--r--init.el11
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