Skip to content

Commit

Permalink
Add keybindings for org-capture
Browse files Browse the repository at this point in the history
  • Loading branch information
tshu-w authored and condy0919 committed Oct 11, 2024
1 parent 6365e7c commit c0fb5a0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions modes/org/evil-collection-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@
;;; Code:
(require 'evil-collection)

(defconst evil-collection-org-maps '(org-mode-map))
(defconst evil-collection-org-maps '(org-mode-map
org-capture-mode-map))

(declare-function org-shifttab "org")
(declare-function org-backward-paragraph "org")
(declare-function org-forward-paragraph "org")
(declare-function org-backward-sentence "org")
(declare-function org-forward-sentence "org")
(declare-function org-capture-finalize "org-capture")
(declare-function org-capture-kill "org-capture")
(declare-function org-capture-refile "org-capture")

;;;###autoload
(defun evil-collection-org-setup ()
Expand All @@ -50,7 +54,12 @@
"{" 'org-backward-paragraph
"}" 'org-forward-paragraph
"(" 'org-backward-sentence
")" 'org-forward-sentence))
")" 'org-forward-sentence)

(evil-collection-define-key 'normal 'org-capture-mode-map
"ZZ" 'org-capture-finalize
"ZQ" 'org-capture-kill
"ZR" 'org-capture-refile))

(provide 'evil-collection-org)
;;; evil-collection-org.el ends here

0 comments on commit c0fb5a0

Please sign in to comment.