]> git.earman.xyz Git - emacsinit.git/commitdiff
Fix up send-on-close-paren macro & binding
authorrearman <rearman@r717.net>
Tue, 25 Jun 2024 13:02:05 +0000 (09:02 -0400)
committerrearman <rearman@r717.net>
Tue, 25 Jun 2024 13:02:05 +0000 (09:02 -0400)
re/re-bindings.el
re/re-repl-defuns.el

index 3d1b92ff60f01e1516dc864cc19ae722dbfdeaea..cb0929ff8148f5b93bfa77294c8c3c82dd900de7 100644 (file)
 (add-hook 'ielm-mode-hook
          (lambda ()
            (keymap-set inferior-emacs-lisp-mode-map "C-l" 'comint-clear-buffer)
-           (keymap-set inferior-emacs-lisp-mode-map ")" '(re/send-on-close-paren 'ielm-send-input))))
+           (keymap-set inferior-emacs-lisp-mode-map ")" (re/send-on-close-paren 'ielm-send-input))))
 (keymap-global-set "C-c e" 'eshell)
 (add-hook 'eshell-mode-hook
          (lambda ()
-           (keymap-set eshell-mode-map ")" '(re/send-on-close-paren 'eshell-send-input))
+           (keymap-set eshell-mode-map ")" (re/send-on-close-paren 'eshell-send-input))
            (keymap-set eshell-mode-map "C-d" 'eshell-quit-or-delete-char)))
 
 
index 5e9eb662bddc5fb01b2bd7ded23db4d32d18979c..3be9c5c3a58ba1576b65cd9c23146842aef6f74e 100644 (file)
@@ -8,6 +8,7 @@
 When a sexp is complete - that is when parens balance as you type - execute it.
 Use this macro as a direct binding"
   `(lambda ()
+     (interactive)
      (insert-char 41)
      (when (= 0 (car (syntax-ppss)))
        (call-interactively ,executor))))