Skip to content

Commit

Permalink
Merge branch 'garlic0x1-expand-in-place'
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Feb 9, 2024
2 parents 0fab8bb + 842df6f commit e366bda
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/lisp-mode/macroexpand.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ Do you want to disable this message in the future?"
(when self
(move-point (buffer-point buffer) p))))))))

(define-command lisp-macroexpand-in-place () ()
(check-connection)
(lisp-eval-async
`(micros:swank-macroexpand-1
(lem-lisp-mode/internal::form-string-at-point))
(lambda (string)
(kill-sexp)
(insert-string (current-point) string)
(indent-buffer (current-buffer)))))

(define-command lisp-macroexpand () ()
(check-connection)
(macroexpand-internal 'micros:swank-macroexpand-1))
Expand Down

0 comments on commit e366bda

Please sign in to comment.