noctuid / evil-guide

Draft of a guide for using emacs with evil
GNU General Public License v3.0
1.26k stars 61 forks source link

(evil-make-overriding-map dired-mode-map 'normal) is void #10

Closed FirstLoveLife closed 6 years ago

FirstLoveLife commented 6 years ago
Warning (initialization): An error occurred while loading ‘/home/chenli/.emacs.d/init.el’:

Symbol's function definition is void: evil-make-overriding-map

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

Here is my evil config:

(use-package evil
       :demand
       :ensure t
       :defer 0.1
       :init
       :config
       (evil-mode))
    (evil-make-overriding-map dired-mode-map 'normal)
noctuid commented 6 years ago

I'd first try fixing the use-package statement. You shouldn't have both demand and defer. If you want to use defer, put the evil-make-overriding-map in the config section. You can also remove the init.