aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/lang.org
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/lang.org')
-rw-r--r--Emacs/.config/emacs/lang.org28
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