about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el20
1 files changed, 18 insertions, 2 deletions
diff --git a/init.el b/init.el index 6cf8e1a..3756690 100644 --- a/init.el +++ b/init.el
@@ -782,14 +782,30 @@ if ripgrep is installed, otherwise `consult-grep'."
782 (:option eldoc-idle-delay 0.1 782 (:option eldoc-idle-delay 0.1
783 eldoc-echo-area-use-multiline-p nil)) 783 eldoc-echo-area-use-multiline-p nil))
784;;;;; Emacs lisp 784;;;;; Emacs lisp
785(setup emacs-lisp-mode 785(setup elisp-mode
786 (:option eval-expression-print-length nil 786 (:option eval-expression-print-length nil
787 eval-expression-print-level nil 787 eval-expression-print-level nil
788 lisp-indent-function #'lisp-indent-function)) 788 lisp-indent-function #'lisp-indent-function)
789
790 (defun acdw/eval-region-or-buffer ()
791 (interactive)
792 (if (region-active-p)
793 (eval-region (region-beginning) (region-end))
794 (eval-buffer)))
795
796 (:with-map emacs-lisp-mode-map
797 (:bind "C-c C-c" acdw/eval-region-or-buffer
798 "C-c C-z" ielm))
799
800 (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
801 (add-hook 'ielm-mode-hook 'turn-on-eldoc-mode))
789 802
790(setup (:straight macrostep) 803(setup (:straight macrostep)
791 (define-key emacs-lisp-mode-map (kbd "C-c e") #'macrostep-expand)) 804 (define-key emacs-lisp-mode-map (kbd "C-c e") #'macrostep-expand))
792 805
806(setup (:straight eros)
807 (:hook-into emacs-lisp-mode))
808
793;;;;; Shell scripts 809;;;;; Shell scripts
794(setup sh-mode 810(setup sh-mode
795 (:option sh-basic-offset tab-width 811 (:option sh-basic-offset tab-width