From 6937920714c6d6b3d41036ffc7839f51eb4f9cb9 Mon Sep 17 00:00:00 2001
From: Liu Miao <liumiaogemini@foxmail.com>
Date: Fri, 12 Mar 2021 19:46:31 +0800
Subject: [PATCH] move which-key to keybindings

---
 lisp/editor.el      | 9 ---------
 lisp/keybindings.el | 9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/lisp/editor.el b/lisp/editor.el
index 599110a..6131ecf 100644
--- a/lisp/editor.el
+++ b/lisp/editor.el
@@ -92,7 +92,6 @@
         show-paren-when-point-in-periphery t))
 
 (use-package recentf
-  :defer 1
   :commands (recentf-save-list)
   :init
   (progn
@@ -231,14 +230,6 @@
   :config
   (load-theme 'doom-one t))
 
-;;; Whichkey
-(use-package which-key
-  :ensure t
-  :init
-  (which-key-mode)
-  :config
-  :diminish which-key-mode)
-
 ;;; Undo tree mode
 (use-package undo-tree
   :ensure t
diff --git a/lisp/keybindings.el b/lisp/keybindings.el
index 6388881..d97c404 100644
--- a/lisp/keybindings.el
+++ b/lisp/keybindings.el
@@ -5,6 +5,15 @@
 (defvar emacs-default-map (make-sparse-keymap)
   "Base keymap for all Emacs leader key commands.")
 
+;;; Whichkey
+(use-package which-key
+  :ensure t
+  :hook (after-init . which-key-mode)
+  :config
+  (setq which-key-show-early-on-C-h t)
+  (which-key-show-major-mode)
+  :diminish which-key-mode)
+
 ;;; Keybinding
 (use-package evil
   :ensure t
-- 
GitLab