aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-19 22:50:16 +0800
committerGuangxiong Lin <[email protected]>2022-04-19 22:50:16 +0800
commit8157478f9ccaef0dd823ac8ad1bf431bd86d9a71 (patch)
tree87e2499cb568b359c1defc1c670df9df7df4e1be
parent113ccbaf512aa08f2c46b69c466bc3305b6d126b (diff)
downloaddotfiles-8157478f9ccaef0dd823ac8ad1bf431bd86d9a71.tar.gz
dotfiles-8157478f9ccaef0dd823ac8ad1bf431bd86d9a71.tar.bz2
dotfiles-8157478f9ccaef0dd823ac8ad1bf431bd86d9a71.zip
Autoload which-key and undotree
I don't know why these functions don't be autoloaded by default now ...
-rw-r--r--.emacs.d/lisp/init-misc.el2
1 files changed, 2 insertions, 0 deletions
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))