From 86a5b55e66648f79a835e3ebd295483359b9a4a8 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 19 Apr 2022 22:59:58 +0800 Subject: Add hook to after-init-hook by order I cannot use emacs without evil-mode ... Load it first to avoid any issue occurs during initialization. --- .emacs.d/lisp/init-misc.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.emacs.d/lisp/init-misc.el') diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index 31d2358..aab95f7 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -43,7 +43,8 @@ (global-so-long-mode 1) (recentf-mode) (show-paren-mode) - (fset 'yes-or-no-p 'y-or-n-p))) + (fset 'yes-or-no-p 'y-or-n-p)) + 'append) (with-eval-after-load 'hideshow (gx/diminish 'hs-minor-mode)) @@ -54,13 +55,13 @@ (when (gx/maybe-require-package 'which-key) (autoload 'which-key-mode "which-key") - (add-hook 'after-init-hook 'which-key-mode)) + (add-hook 'after-init-hook 'which-key-mode 'append)) (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)) + (add-hook 'after-init-hook 'global-undo-tree-mode 'append)) (with-eval-after-load 'undo-tree (gx/diminish 'undo-tree-mode)) (setq undo-tree-auto-save-history t -- cgit v1.2.3