diff --git a/layers/+spacemacs/spacemacs-defaults/funcs.el b/layers/+spacemacs/spacemacs-defaults/funcs.el index 67b919bf4..1b318a374 100644 --- a/layers/+spacemacs/spacemacs-defaults/funcs.el +++ b/layers/+spacemacs/spacemacs-defaults/funcs.el @@ -124,9 +124,10 @@ If not in such a search box, fall back on `Custom-newline'." (defun spacemacs/dired-remove-evil-mc-gr-which-key-entry () ;; Remove inherited bindings from evil-mc ;; do this after the config to make sure the keymap is available - (which-key-add-keymap-based-replacements dired-mode-map - " g r" nil - " g r" nil)) + (with-eval-after-load 'dired + (which-key-add-keymap-based-replacements dired-mode-map + " g r" nil + " g r" nil))) (defun spacemacs/indent-region-or-buffer () "Indent a region if selected, otherwise the whole buffer."