From: rearman Date: Tue, 14 May 2024 15:09:07 +0000 (-0400) Subject: Fix typos in lisp-interaction-mode section X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=9ec6f499386cc68273ba5133126c515ee133f161;p=emacsinit.git Fix typos in lisp-interaction-mode section --- diff --git a/init.org b/init.org index ec42e1f..a559b77 100644 --- a/init.org +++ b/init.org @@ -1791,14 +1791,13 @@ Makes a closing paren execute the sexp." :PROPERTIES: :ID: 5b958a6f-130d-449c-b6ab-f870947820b8 :END: -I want the scratch buffer to act more like a repl - -** Send on Close-Paren +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 +**** Send on Close Paren :PROPERTIES: :ID: 72ead9d2-fc5c-42f0-a1b4-db28a532d920 :END: @@ -1807,15 +1806,15 @@ I wanted something like what the Genera environment has, where putting in a fina "Makes lisp interaction mode act somewhat like genera. Makes a closing paren execute the sexp." (interactive) - (send-on-close-paren 'lisp-interaction-send-on-close-paren)) + (send-on-close-paren 'eval-print-last-sexp)) #+END_SRC -*** Binding +**** Binding :PROPERTIES: :ID: 9930f99d-aa36-4f00-8bc7-8c619979712a :END: #+BEGIN_SRC emacs-lisp -(add-hook 'lisp-interaction-mode-map +(add-hook 'lisp-interaction-mode-hook (lambda () (keymap-set lisp-interaction-mode-map ")" 'lisp-interaction-send-on-close-paren))) #+END_SRC