Emacs Compatibility Tracking Issue #23629
Replies: 46 comments 10 replies
-
An offical "Emacs mode" would be really nice. There is a couple of example user configurations over here: https://github.com/zed-industries/community/discussions/1653 At the moment the lack of a "mark" command is the biggest holdup. In Emacs, pressing Ctrl+SPC will toggle selection and let you use movement commands to select text without keeping Shift pressed. Any chance this could be added to Zed? |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment has been minimized.
This comment has been minimized.
This comment was marked as spam.
This comment was marked as spam.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been hidden.
This comment has been hidden.
-
For those following this issue we've recently shipped two emacs-related improvements: Please try out the It's very basic at this point, but give it a whirl, happy to consider PRs with improvements / refinements. Rather than close this issue I've repurposed it as a tracking issue for additional Emacs-related enhancements and I've edited the issue description above to include links to other issues. One other update, sadly, due to issues with international keyboards we also opted to revert If you need emacs/readline style keybinds in your terminal which use "terminal": {
"option_as_meta": true
} |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been minimized.
This comment has been minimized.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been minimized.
This comment has been minimized.
-
I'm trying this Emacs keymap, one thing I'm confused about is how it should handle conflicts with default Zed keybinds, eg C-p instead of going to previous line currently opens project file search and C-a selects all instead of going to beginning of a line. |
Beta Was this translation helpful? Give feedback.
-
You're probably missing the
|
Beta Was this translation helpful? Give feedback.
-
I do have that, and I have some Emacs keybinds working, like C-n, C-e, but only those which are not used by Zed default bindings |
Beta Was this translation helpful? Give feedback.
-
I'm in Zed
And my |
Beta Was this translation helpful? Give feedback.
-
In Emacs, one can bind the same keyboard shortcut to different commands in different programming language buffers. It would be great if Zed had similar functionality. For example, using the same shortcut to execute different run commands / tasks in Python and Rust files, e.g. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
What do you think about support for s-expressions ("sexp" for short), like Link to the GNU Emacs Manual: https://www.gnu.org/software/emacs/manual/html_node/emacs/Expressions.html |
Beta Was this translation helpful? Give feedback.
-
Hey @notpeter I've updated Zed to 0.171.3 and I can confirm
Thanks! |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
In Emacs, one can select and page up/down at the same time. I wish we can do it in Zed with and without the selection context. #9015 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Can Meta key be remapped to Command instead of Option in Mac? |
Beta Was this translation helpful? Give feedback.
-
I've recently seen the new selection_mode feature integrated on Zed and it's really nice thing to have. It was actually one of my blockers to move to Zed so now I can start the transition! I've noted however, that the "SetMark" is likely missing a "PopMark" counterpart, emulating the Emacs mark ring. This is a feature similar to what is implemented for Vim (#25702), but with a stack of past marks instead of having marks accessible with different keys. |
Beta Was this translation helpful? Give feedback.
-
Emacs key bindings like
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Rather than a monolithic "implement emacs in Zed" enhancement request (which is inherently unactionable) this issue is a tracking issue for centralizing various Zed bug fixes and enhancements to better supporting emacs-like compatibility and operation in Zed.
Issues:
ctrl-x
than MacOS Terminal (emacs) #16214occur
style) #22943keep lines
andflush lines
command #23408Merged PRs:
editor::SwapSelectionEnds
everywhere (emacs exchange-point-and-mark) #23428Comments such as "I need emacs mode to switch to Zed!" and the like are unwelcome here.
Please vote with 👍 below on this issue and the linked issues instead.
Editor note (@notpeter): Originally this issue was for an emacs keymap, a beta of which shipped in #19605
Beta Was this translation helpful? Give feedback.
All reactions