We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fab8bb + 842df6f commit e366bdaCopy full SHA for e366bda
extensions/lisp-mode/macroexpand.lisp
@@ -254,6 +254,16 @@ Do you want to disable this message in the future?"
254
(when self
255
(move-point (buffer-point buffer) p))))))))
256
257
+(define-command lisp-macroexpand-in-place () ()
258
+ (check-connection)
259
+ (lisp-eval-async
260
+ `(micros:swank-macroexpand-1
261
+ (lem-lisp-mode/internal::form-string-at-point))
262
+ (lambda (string)
263
+ (kill-sexp)
264
+ (insert-string (current-point) string)
265
+ (indent-buffer (current-buffer)))))
266
+
267
(define-command lisp-macroexpand () ()
268
(check-connection)
269
(macroexpand-internal 'micros:swank-macroexpand-1))
0 commit comments