about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-27 11:35:02 -0500
committerCase Duckworth2021-04-27 11:35:02 -0500
commit0298999997c8e04eb403a00490496ec7b7ce9012 (patch)
treed867d6a23d5187c3342e45c58ebd8c53aae99cfa
parentChange a couple gnus settings (diff)
downloademacs-0298999997c8e04eb403a00490496ec7b7ce9012.tar.gz
emacs-0298999997c8e04eb403a00490496ec7b7ce9012.zip
Change emacs-lisp eval bindings
Try to emulate slime a little more.  I really like the flashy things, but IDK
how to get that with elisp yet.
-rw-r--r--init.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.el b/init.el index c65a3ea..b6a01d0 100644 --- a/init.el +++ b/init.el
@@ -871,9 +871,11 @@ if ripgrep is installed, otherwise `consult-grep'."
871 (eval-region (region-beginning) (region-end))) 871 (eval-region (region-beginning) (region-end)))
872 (with-message "Evaluating buffer" 872 (with-message "Evaluating buffer"
873 (eval-buffer)))) 873 (eval-buffer))))
874 874
875 ;; Emulate slime's eval binds
875 (:with-map emacs-lisp-mode-map 876 (:with-map emacs-lisp-mode-map
876 (:bind "C-c C-c" acdw/eval-region-or-buffer 877 (:bind "C-c C-c" eval-defun
878 "C-c C-k" acdw/eval-region-or-buffer
877 "C-c C-z" ielm)) 879 "C-c C-z" ielm))
878 880
879 (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode) 881 (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)