diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-18 14:54:42 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-18 14:54:42 +0630 |
commit | 03a2fc0541cc3e302592e9803a7b6ea1425b658f (patch) | |
tree | 313f3ad819e3a11a504f43dd3b89446f659aae55 | |
parent | f60c3b5bad999d961141ce73a3b71910e102fff5 (diff) | |
download | dotfiles-03a2fc0541cc3e302592e9803a7b6ea1425b658f.tar.gz dotfiles-03a2fc0541cc3e302592e9803a7b6ea1425b658f.tar.bz2 dotfiles-03a2fc0541cc3e302592e9803a7b6ea1425b658f.zip |
(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.
-rw-r--r-- | Emacs/.config/emacs/lang.org | 28 |
1 files 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 |