aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-13 23:48:50 +0800
committerGuangxiong Lin <[email protected]>2022-03-13 23:48:50 +0800
commit4601f4d349d60d2e8f63f431fe174b386ee3f8c2 (patch)
treefe26ce98d03e9daa4e4532c9c8af4027e250cd65
parent73534041ca3320fd2cb5da2f3635d7a5acee672a (diff)
downloaddotfiles-4601f4d349d60d2e8f63f431fe174b386ee3f8c2.tar.gz
dotfiles-4601f4d349d60d2e8f63f431fe174b386ee3f8c2.tar.bz2
dotfiles-4601f4d349d60d2e8f63f431fe174b386ee3f8c2.zip
Load evil-org first to avoid override custom (emacs)
-rw-r--r--.emacs.d/lisp/init-org.el22
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))