Somelauw / evil-org-mode

Supplemental evil-mode keybindings to emacs org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:w doesn't work anymore in org src buffers

jackkamm opened this issue · comments

At some point in the past :w in an org src buffer would update and save the underlying org-file, but this hasn't worked for some time now, and now throws user-error: Please specify a file name for the buffer.

The following binding (suggested in #43) adds this feature back:

(define-key org-src-mode-map [remap evil-write] 'org-edit-src-save)

I'm using org-plus-contrib-20190624 and evil-org-20180323.2306.

ZZ works for me. Otherwise C-c C-c isn't too bad.
However, if anyone should attempt to fix this, be sure that it doesn't break :w newfile.org.

See #43