]> git.earman.xyz Git - emacsinit.git/commitdiff
Remove binding for lisp-interaction-mode
authorrearman <rearman@r717.net>
Tue, 14 May 2024 19:43:01 +0000 (15:43 -0400)
committerrearman <rearman@r717.net>
Tue, 14 May 2024 19:43:01 +0000 (15:43 -0400)
Realized I really don't want that outside of an actual repl

init.org

index a559b778d2284f83cd97e59f7261ec3714d0016d..ca10f9ac3dab14d6db26080dc1545a879d10bb96 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1787,38 +1787,6 @@ Makes a closing paren execute the sexp."
             (keymap-set inferior-emacs-lisp-mode-map "C-l" 'comint-clear-buffer)
             (keymap-set inferior-emacs-lisp-mode-map ")" 'ielm-send-on-close-paren)))
 #+END_SRC
-** Lisp interaction mode configuration
-:PROPERTIES:
-:ID:       5b958a6f-130d-449c-b6ab-f870947820b8
-:END:
-I want the scratch buffer to act more like a repl.
-*** Send on Close-Paren
-:PROPERTIES:
-:ID:       664ba0e7-0826-4868-9480-e1338a6e9f63
-:END:
-I wanted something like what the Genera environment has, where putting in a final close-paren will send the command, without having to hit enter. See [[id:325c01c5-b877-4281-adff-ea956bdb5f2c][Send on Close-Paren]].
-**** Send on Close Paren
-:PROPERTIES:
-:ID:       72ead9d2-fc5c-42f0-a1b4-db28a532d920
-:END:
-#+BEGIN_SRC emacs-lisp
-(defun lisp-interaction-send-on-close-paren ()
-  "Makes lisp interaction mode act somewhat like genera.
-Makes a closing paren execute the sexp."
-  (interactive)
-  (send-on-close-paren 'eval-print-last-sexp))
-#+END_SRC
-
-**** Binding
-:PROPERTIES:
-:ID:       9930f99d-aa36-4f00-8bc7-8c619979712a
-:END:
-#+BEGIN_SRC emacs-lisp
-(add-hook 'lisp-interaction-mode-hook
-          (lambda ()
-            (keymap-set lisp-interaction-mode-map ")" 'lisp-interaction-send-on-close-paren)))
-#+END_SRC
-
 ** Customize system
 :PROPERTIES:
 :ID:       2fb88065-0c84-4b55-8c5a-59d78a15b134