From 906207997c8bf72535ec77862ccb6d19f296a1b1 Mon Sep 17 00:00:00 2001 From: Vedang Manerikar <ved.manerikar@gmail.com> Date: Mon, 9 Dec 2024 06:27:44 +0530 Subject: [PATCH] Fix: RET should work properly in IELM --- unravel-emacs.org | 17 ++++++++++++++++- unravel-modules/unravel-langs.el | 10 +++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/unravel-emacs.org b/unravel-emacs.org index 8ea5bff..ae09fc8 100644 --- a/unravel-emacs.org +++ b/unravel-emacs.org @@ -5147,7 +5147,8 @@ Prot is the developer of this package. ("C-A-u" . paredit-backward-up) ;; Unbind things that I don't need ("M-s" . nil) ; used for search related keybindings - ("M-?" . nil)) ; `xref-find-references` uses it. + ("M-?" . nil) ; `xref-find-references' uses it. + ("RET" . nil)); `ielm-return' uses it. :hook ((lisp-data-mode lisp-mode clojure-mode clojure-ts-mode cider-repl-mode inferior-emacs-lisp-mode) . paredit-mode)) #+end_src @@ -5333,6 +5334,20 @@ Clojure is my favorite programming language, and it has been my bread and butter (user-error "Could not find jet installed"))))) #+end_src +** The =unravel-langs.el= section for Emacs Lisp +:PROPERTIES: +:CUSTOM_ID: h:54D8C607-5CF6-425A-BFBD-0602334BE199 +:CREATED: [2024-12-06 Fri 22:26] +:END: + +#+begin_src emacs-lisp :tangle "unravel-modules/unravel-langs.el" + ;;; Settings for Interaction mode for Emacs-Lisp + (use-package ielm + :ensure nil + :bind + ( :map ielm-map + ("C-j" . newline-and-indent))) +#+end_src ** Finally, we provide the =unravel-langs.el= module :PROPERTIES: :CUSTOM_ID: h:924224F1-61A0-4CCD-A3C3-4F230D3CF0A0 diff --git a/unravel-modules/unravel-langs.el b/unravel-modules/unravel-langs.el index 5275807..44d75f2 100644 --- a/unravel-modules/unravel-langs.el +++ b/unravel-modules/unravel-langs.el @@ -357,7 +357,8 @@ modifications." ("C-A-u" . paredit-backward-up) ;; Unbind things that I don't need ("M-s" . nil) ; used for search related keybindings - ("M-?" . nil)) ; `xref-find-references` uses it. + ("M-?" . nil) ; `xref-find-references' uses it. + ("RET" . nil)); `ielm-return' uses it. :hook ((lisp-data-mode lisp-mode clojure-mode clojure-ts-mode cider-repl-mode inferior-emacs-lisp-mode) . paredit-mode)) (use-package apheleia @@ -449,4 +450,11 @@ NS is the namespace information passed into the function by cider." (goto-char p)) (user-error "Could not find jet installed"))))) +;;; Settings for Interaction mode for Emacs-Lisp +(use-package ielm + :ensure nil + :bind + ( :map ielm-map + ("C-j" . newline-and-indent))) + (provide 'unravel-langs)