Skip to content

Commit

Permalink
Added keybinding for :w in Org Src
Browse files Browse the repository at this point in the history
  • Loading branch information
romanZupancic committed Jan 17, 2023
1 parent ddf3c3a commit 423b473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions evil-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ Optional argument THEME list of themes. See evil-org-keytheme for a list of valu
(define-key org-capture-mode-map [remap evil-quit] #'org-capture-kill))

(with-eval-after-load 'org-src
(define-key org-src-mode-map [remap evil-write] #'org-edit-src-save)
(define-key org-src-mode-map [remap evil-save-and-close] #'evil-org-edit-src-exit)
(define-key org-src-mode-map [remap evil-save-modified-and-close] #'evil-org-edit-src-exit)
(define-key org-src-mode-map [remap evil-quit] #'org-edit-src-abort))
Expand Down

0 comments on commit 423b473

Please sign in to comment.