From 8157478f9ccaef0dd823ac8ad1bf431bd86d9a71 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 19 Apr 2022 22:50:16 +0800 Subject: Autoload which-key and undotree I don't know why these functions don't be autoloaded by default now ... --- .emacs.d/lisp/init-misc.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index 55ad0eb..31d2358 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -53,11 +53,13 @@ (gx/maybe-require-package 'esup) (when (gx/maybe-require-package 'which-key) + (autoload 'which-key-mode "which-key") (add-hook 'after-init-hook 'which-key-mode)) (with-eval-after-load 'which-key (gx/diminish 'which-key-mode)) (when (gx/maybe-require-package 'undo-tree) + (autoload 'global-undo-tree-mode "undo-tree") (add-hook 'after-init-hook 'global-undo-tree-mode)) (with-eval-after-load 'undo-tree (gx/diminish 'undo-tree-mode)) -- cgit v1.2.3