[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use-package
From: |
Kaushal Modi |
Subject: |
Re: use-package |
Date: |
Mon, 02 May 2016 18:47:22 +0000 |
>
> Now my real init file, emacs_init.el
>
> contains calls to many official packages such as auctex, orgmode, gnus
> to name a few. These calls I presume I am able to transfer to the
> use-package syntax.
>
> But I have also private files, with some hacks, one file with my global
> keybindings etc
>
> How do I treat those files?
>
> Maybe somebody with experience in use-package could give me an advice?
>
This probably has nothing to do with use-package. You can have a mix of
(use-package ..) and (require ..) forms.
I use use-package for all my packages. But I also `require' files like
setup-personal.el (which have a (provide 'setup-personal)), which I do not
commit to github.
https://github.com/kaushalmodi/.emacs.d/blob/d51b8bb267fd18978eed28e59a28006b235f75aa/init.el#L310-L311
Example use:
(require 'setup-personal nil :noerror)
If a setup-personal.el (with the right provide) is found in the load-path,
it will be required, else nothing will happen (no errors).
Then, within the setup-personal.el, I would be having use-package forms if
any.
Hope this helps.
--
--
Kaushal Modi
- use-package, Uwe Brauer, 2016/05/02
- Re: use-package,
Kaushal Modi <=
- Re: use-package, Uwe Brauer, 2016/05/03
- Re: use-package, Phillip Lord, 2016/05/04
- RE: use-package, Drew Adams, 2016/05/04
- Re: use-package, Phillip Lord, 2016/05/05
- RE: use-package, Drew Adams, 2016/05/05
- Re: use-package, Kaushal Modi, 2016/05/05