diff options
author | Guangxiong Lin <[email protected]> | 2022-03-13 10:53:38 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-13 10:53:38 +0800 |
commit | f677dc067e2eb8673c73dba2832b8d2ec5e3c586 (patch) | |
tree | f2a11aae2a9c6912ddd1216d2b80a3413eddf373 /.emacs.d/lisp | |
parent | c956877165a9da602ecbacf8ad804361f1f1caca (diff) | |
download | dotfiles-f677dc067e2eb8673c73dba2832b8d2ec5e3c586.tar.gz dotfiles-f677dc067e2eb8673c73dba2832b8d2ec5e3c586.tar.bz2 dotfiles-f677dc067e2eb8673c73dba2832b8d2ec5e3c586.zip |
Use autoload instead of require in orgmode (emacs)
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-org.el | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |