zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.62k stars 3.04k forks source link

Emacs roots - Lisp/macro system #12388

Open benjiqq opened 5 months ago

benjiqq commented 5 months ago

Check for existing issues

Describe the feature

A flexible text editor with an integrate lisp/macro system could bring the power of an emacs like system to a much wider audience. There hasn't been a major attempt to do a lisp/clojure on rust this could be an opportunity. There was an attempt with LightTable a while ago. I wonder about thoughts of the team on Emacs/Lighttable in modern times.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

pointertobios commented 4 months ago

In my opinion, emacs like system is all about macros and shortcut. There is no need to build an interpreter for lisp. Many zed users is rust porogrammers, so using rust to define the macro in the emacs like system could be suitable. There is some of my imagine: After user edit the rust code of macros, zed can compile and dynlink it.We can just offer a set of APIs for macro codes to change states and contents of text buffer.

andrewbanchich commented 4 weeks ago

Totally agree with @pointertobios. I've used Emacs as my main editor for ten years, and Lisp has always been one of the biggest things I didn't like about the experience.

My ideal is the ability to use Rust to hook into different aspects of Zed and compose functionality.