From 47edb5b38702fc306b6be7c14bf013108a39b079 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 19 Nov 2019 10:39:34 -0500 Subject: [PATCH] Use evil-org bindings --- emacs/init.org | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 277cd12..17a7d2d 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1009,13 +1009,29 @@ Always show inline images: (general-def 'normal org-mode-map "J" #'org-move-subtree-down) (general-def 'normal org-mode-map "" #'org-return) (general-def 'normal org-mode-map "TAB" #'org-cycle) + (general-def 'normal org-mode-map "SPC" leader-map) (general-def org-mode-map "C-c e" #'org-preview-latex-fragment) (general-def "C-c l" #'org-store-link) #+END_SRC -Enable using the leader key in the agenda view: +Set up evil keybindings: #+BEGIN_SRC emacs-lisp - (general-def org-agenda-mode-map "SPC" leader-map) + (use-package evil-org + :after (evil org) + :config + (add-hook 'org-mode-hook #'evil-org-mode) + (add-hook 'evil-org-mode-hook + (lambda () + (evil-org-set-key-theme + '(textobjects + insert + navigation + additional + shift + todo + heading)))) + (require 'evil-org-agenda) + (evil-org-agenda-set-keys)) #+END_SRC And a global keybinding to open an org file: