From 03a2fc0541cc3e302592e9803a7b6ea1425b658f Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 18 Apr 2024 14:54:42 +0630 Subject: (Emacs/lang)~split Lisp section into Emacs lisp and Lisp indent Not much of a difference but it does make it cleaner to look at. --- Emacs/.config/emacs/lang.org | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Emacs/.config/emacs/lang.org b/Emacs/.config/emacs/lang.org index 29b3266..5b10d72 100644 --- a/Emacs/.config/emacs/lang.org +++ b/Emacs/.config/emacs/lang.org @@ -672,11 +672,9 @@ development on Emacs. :keymaps 'sly-inspector-mode-map "q" #'sly-inspector-quit)) #+end_src -** Lisp indent function -Add a new lisp indent function which indents newline lists more -appropriately. +** Emacs lisp #+begin_src emacs-lisp -(use-package lisp-mode +(use-package elisp-mode :straight nil :pretty (lisp-mode-hook @@ -694,6 +692,19 @@ appropriately. :keymaps '(emacs-lisp-mode-map lisp-mode-map) ")" #'sp-next-sexp "(" #'sp-previous-sexp) + (nmmap + :keymaps '(emacs-lisp-mode-map lisp-interaction-mode-map) + "gr" #'eval-last-sexp) + (vmap + :keymaps '(emacs-lisp-mode-map lisp-interaction-mode-map) + "gr" #'eval-region)) +#+end_src +** Lisp indent function +Add a new lisp indent function which indents newline lists more +appropriately. +#+begin_src emacs-lisp +(use-package lisp-mode + :straight nil :config (defun +oreo/lisp-indent-function (indent-point state) (let ((normal-indent (current-column)) @@ -746,12 +757,3 @@ appropriately. (funcall method indent-point state)))))))) (setq-default lisp-indent-function #'+oreo/lisp-indent-function)) #+end_src -** Emacs lisp -#+begin_src emacs-lisp -(use-package elisp-mode - :straight nil - :general - (vmap - :keymaps '(emacs-lisp-mode-map lisp-interaction-mode-map) - "gr" #'eval-region)) -#+end_src -- cgit v1.2.3-13-gbd6f