Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed :wq in Org Src #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

romanZupancic
Copy link

@romanZupancic romanZupancic commented Jan 15, 2023

:wq command (and :w) currently fails in an Org Src buffer.

It is currently mapped to the evil-org-edit-src-exit function. This function uses evil-write.

evil-write tries to save the Org Src buffer to a new file instead of embedding the buffer into the parent org file. The actual desired behavior is provided by org-edit-src-save.

  • Changed the evil-org-edit-src-exit function to use org-edit-src-save instead.
  • Set function for :w to org-edit-src-save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant