diff options
-rw-r--r-- | .emacs.d/lisp/init-org.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 0102460..19cd807 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -6,6 +6,17 @@ (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (add-hook 'org-capture-after-finalize-hook 'org-save-all-org-buffers) +;; evil +(when (gx/maybe-require-package 'evil-org) + (add-hook 'org-mode-hook 'evil-org-mode) + (add-hook 'org-agenda-mode-hook 'evil-org-mode)) +;; (add-hook 'evil-org-mode-hook +;; (lambda () +;; (setq evil-want-C-i-jump nil))) +(with-eval-after-load 'evil-org + (evil-org-set-key-theme '(navigation insert textobjects additional calendar todo)) + (gx/diminish 'evil-org-mode)) + ;; keybinds (with-eval-after-load 'evil (evil-define-key 'normal 'global @@ -114,17 +125,6 @@ '((shell . t) (plantuml . t)))) -;; evil -(when (gx/maybe-require-package 'evil-org) - (add-hook 'org-mode-hook 'evil-org-mode) - (add-hook 'org-agenda-mode-hook 'evil-org-mode)) -;; (add-hook 'evil-org-mode-hook -;; (lambda () -;; (setq evil-want-C-i-jump nil))) -(with-eval-after-load 'evil-org - (evil-org-set-key-theme '(navigation insert textobjects additional calendar todo)) - (gx/diminish 'evil-org-mode)) - ;; roam (when (gx/maybe-require-package 'org-roam) (add-hook 'org-mode-hook 'org-roam-db-autosync-mode)) |