Commit graph

12 commits

Author SHA1 Message Date
talyz
2d2e50224c
Allow leaf to be used as an alternative to use-package..
..in `emacsWithPackagesFromUsePackage`.
2020-12-27 11:24:17 +01:00
talyz
b900181472
Add alwaysTangle argument to emacsWithPackagesFromUsePackage
Add an option to tangle all Org mode babel code blocks by default and
update the documentation.
2020-08-11 18:17:19 +02:00
talyz
7fd146158e
Use the native Org mode parsing capabilities of fromElisp...
..for IFD free Org babel file support.
2020-08-07 15:24:28 +02:00
Luke Bentley-Fox
82da5df9bb
correctly format
Co-authored-by: Kim Lindberger <kim.lindberger@gmail.com>
2020-07-24 13:12:30 +01:00
Luke Bentley-Fox
b2282ad006
use fixed package set 2020-07-24 12:06:21 +01:00
talyz
cf3d5b801e
Use an update script to import fromElisp 2020-07-22 22:41:37 +02:00
talyz
e43d9dbe42
Add option use-package-always-ensure behavior
When `use-package-always-ensure` is set to `t`, `:ensure` defaults to
`t`. This adds the `alwaysEnsure` argument to
`emacsWithPackagesFromUsePackage` which, if set to true, emulates this
behavior.
2020-07-18 21:17:38 +02:00
talyz
8bdbed0579
Make parsePackagesFromUsePackage consider :ensure and :disabled
Use `fromElisp` (https://github.com/talyz/fromElisp), imported using
`niv` (https://github.com/nmattia/niv), to properly parse the emacs
configuration. This lets us take `:ensure` and `:disabled` into
account when listing packages to install:

- only declarations with an `:ensure` value of true or an alternate
  package name will be included; if an alternate package name is
  supplied, it will be used

- declarations with a `:disabled` value of true will be excluded
2020-07-18 01:32:47 +02:00
Steve Purcell
fa7e127f03 Renamed packageFile arg to packageElisp for clarity 2020-06-21 15:36:01 +12:00
Steve Purcell
257557be07 Add docstring with example Package-Requires parse inputs and results 2020-06-20 16:01:01 +12:00
Steve Purcell
1b7520aab8 Match more liberally in Package-Requires lists 2020-06-20 15:54:57 +12:00
Steve Purcell
8439afbe1e Add emacsWithPackagesFromPackageRequires
This provides a mechanism for creating an Emacs closure that contains
the runtime dependencies for a given Emacs package source file, by
inspecting its Package-Requires header.
2020-06-20 15:54:57 +12:00