From f677dc067e2eb8673c73dba2832b8d2ec5e3c586 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 10:53:38 +0800 Subject: Use autoload instead of require in orgmode (emacs) --- .emacs.d/lisp/init-org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index ed8b80d..2e27d34 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -159,6 +159,7 @@ (when (gx/maybe-require-package 'evil-org) (add-hook 'org-mode-hook 'evil-org-mode) (add-hook 'org-agenda-mode-hook 'evil-org-mode)) +(autoload 'evil-org-agenda-set-keys "evil-org-agenda") (add-hook 'evil-org-mode-hook (lambda () (setq evil-want-C-i-jump nil))) @@ -169,7 +170,6 @@ (org-save-all-org-buffers) (org-agenda-quit)))) (with-eval-after-load 'evil-org - (require 'evil-org-agenda) (evil-org-set-key-theme '(navigation insert textobjects additional calendar todo)) (evil-org-agenda-set-keys) (gx/diminish 'evil-org-mode)) -- cgit v1.2.3