noctuid/general.el

General.el byte-compile warning

MountainGreen opened this issue · 2 comments

When I do (use-package general) to install general.el I always get byte-compile warnings:

Warning (bytecomp): the function ‘use-package-handler/:ghook’ is not known to be de\
fined.                                                                              
Warning (bytecomp): the function ‘general-normalize-hook’ is not known to be define\
d.                                                                                  
Warning (bytecomp): the function ‘general-normalize-hook-arglist’ is not known to b\
e defined.                                                                          
Warning (bytecomp): the function ‘general--sanitize-arglist’ is not known to be def\
ined.                                                                               
Warning (bytecomp): the function ‘general-tomap’ is not known to be defined.        
Warning (bytecomp): the function ‘general-otomap’ is not known to be defined.       
Warning (bytecomp): the function ‘general-itomap’ is not known to be defined.       
Warning (bytecomp): the function ‘general-nvmap’ is not known to be defined.        
Warning (bytecomp): the function ‘general-iemap’ is not known to be defined.        
Warning (bytecomp): the function ‘general-rmap’ is not known to be defined.         
Warning (bytecomp): the function ‘general-omap’ is not known to be defined.         
Warning (bytecomp): the function ‘general-mmap’ is not known to be defined.         
Warning (bytecomp): the function ‘general-vmap’ is not known to be defined.         
Warning (bytecomp): the function ‘general-nmap’ is not known to be defined.         
Warning (bytecomp): the function ‘general-emap’ is not known to be defined.         
Warning (bytecomp): the function ‘general-imap’ is not known to be defined.

I want to have a 'clean' installation so how can I get rid of these warnings?

Having the same issue now - has anyone found a fix?

EDIT: move use-package general after use-package evil. Should work then.

8dcc commented

EDIT: move use-package general after use-package evil. Should work then.

Indeed, that fixed it. For me, I had to add :ater evil to my use-package call.

- (use-package general)
+ (use-package general
+   :after evil)