conao3 / leaf.el

Flexible, declarative, and modern init.el package configuration
GNU General Public License v3.0
505 stars 28 forks source link

Need (require 'leaf') in the init.el file? #497

Closed uwabami closed 3 years ago

uwabami commented 3 years ago

From a slack conversation with @conao3

cat init.el:

(package-initialize)
(unless (package-installed-p 'leaf)
  (package-refresh-contents)
  (package-install 'leaf t))
(leaf leaf-keywords :ensure t)
(leaf-keywords-init)

After byte-compiled, run emacs with the int.elc cause this error: byte-code: Symbol’s function definition is void: leaf-this-file

@conao3 said: leaf-this-file should be macro.

Thanks.

conao3 commented 3 years ago

Thanks! I try to solve this issue via #498. Please try it!

uwabami commented 3 years ago

Hmm.

Next error:

Symbol's value as variable is void: leaf--load-file-name

Thanks.

conao3 commented 3 years ago

well, then we need (bound-and-true-p leaf--load-file-name)

conao3 commented 3 years ago

Merged. Please try it!

uwabami commented 3 years ago

It seems fine. Thanks!