jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.42k stars 260 forks source link

What happens if have multiple same (use-package PACKAGE_NAME ...) list? #901

Closed snowman closed 3 years ago

snowman commented 3 years ago

Because I use someone else config like https://github.com/seagle0128/.emacs.d, which provided init-treemacs.el, which defines:

(use-package treemacs
  :commands ...
  :bind ...
  :config  ...)

How could i add my own config with same package treemacs but without change (use-package treemacs ...) inside init-treemacs.el file?

thomasf commented 3 years ago

It will just be evaluated multiple times individually. So having :disabled t on one doesn't affect the other one at all. Order of execution might be important if you for example :bind the same keys to different commands.

snowman commented 3 years ago

Thanks for the answer :heart: 🎉 🥳 :partying_face: :tada: