Ted Zlatanov
a3c310c11a
Create new "use-package" themse and use it for :custom with custom-theme-set-variables
2020-11-29 14:56:10 +00:00
Ted Zlatanov
8ef7978028
set saved-variable-comment from :custom
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/861
2020-11-29 12:09:48 +00:00
Jimmy Yuen Ho Wong
1f54de9210
Merge branch 'master' into patch-1
2020-07-22 02:05:31 +01:00
Jimmy Yuen Ho Wong
d3f847eaee
Fix broken test due to
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/850
2020-07-12 15:57:49 -04:00
Jimmy Yuen Ho Wong
2ca2212f73
better tests
2020-07-08 04:46:57 +01:00
Jimmy Yuen Ho Wong
de49954965
add test for
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/845
2020-07-08 04:46:57 +01:00
John Lee
0ec4660f74
Add special value back again, in case needed for backwards compat
...
I don't know why this special value exists, but perhaps old client code uses it.
The additional `t' in the macro expansion is accidental but not harmful I guess.
Copyright-paperwork-exempt: yes
2020-05-09 23:46:53 +01:00
John Lee
f30d5761af
Even when there's no :config, run any pre/post config hooks
...
i.e., following the existing docs for use-package-inject-hooks, these hooks are
run:
use-package--foo--pre-config-hook
use-package--foo--post-config-hook
This should make config customisations more predictable (for example, spacemacs
uses these hooks extensively to allow 'layers' to be customised).
I got rid of the "special" default value for :config, because it doesn't seem to
be treated any differently than nil.
Fixes https://github.com/jwiegley/use-package/issues/785
Copyright-paperwork-exempt: yes
2020-05-09 23:46:53 +01:00
Radon Rosborough
20415fb9be
Update tests
2019-07-15 22:20:18 -07:00
Vincent Zhang
c297dfdd20
Make custom-face evaluate elisp
...
Fix https://github.com/jwiegley/use-package/issues/696 .
Copyright-paperwork-exempt: yes
2019-05-29 17:42:19 +08:00
Alex Branham
09b7e8e129
Fix use-package-normalize-function tests
2018-06-13 20:24:09 -05:00
Alex Branham
e2e6f9a44b
Enable lexical binding
...
This supersedes https://github.com/jwiegley/use-package/issues/617 and closes https://github.com/jwiegley/use-package/issues/648
2018-06-13 20:24:09 -05:00
John Wiegley
ab918196fa
Revert "Merge pull request from jabranham/lexical-bindings"
...
This reverts commit d21787f1d6
, reversing
changes made to fd8a3510fd
.
GitHub-reference: https://github.com/jwiegley/use-package/issues/617
2018-01-27 14:13:48 -08:00
John Wiegley
566a2ea3a1
Revert "Move variable bindings to the bottom of each file"
...
This reverts commit c29193bf07
.
2018-01-27 14:09:10 -08:00
John Wiegley
c29193bf07
Move variable bindings to the bottom of each file
2018-01-27 14:07:11 -08:00
Alex Branham
2274130b40
Test still requires cl
2018-01-27 11:11:40 -06:00
Alex Branham
88bcb8b96d
Use lexical bindings and remove cl package
2018-01-27 10:01:10 -06:00
John Wiegley
2d226310f1
All the second argument in use-package-defaults lists to be a function
...
Address the question raised in https://github.com/jwiegley/use-package/issues/591
2017-12-15 22:48:42 -08:00
John Wiegley
51eceb4238
Add a test related to
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/589
2017-12-13 17:03:05 -08:00
John Wiegley
31fa2f24a1
Add more tests related to issue
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/572
2017-12-13 17:02:55 -08:00
John Wiegley
a4d2e77961
bind-keys fixes related to
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/482
2017-12-10 21:25:37 -08:00
John Wiegley
3850281f88
Add a clarifying test for
...
GitHub-reference: https://github.com/jwiegley/use-package/issues/482
2017-12-10 09:53:13 -08:00
John Wiegley
ec84ed0dfb
Fix a scoping issues with multiple occurrences of :bind
...
Fixes https://github.com/jwiegley/use-package/issues/585
2017-12-09 16:29:11 -08:00
John Wiegley
0068501aa0
Remove several unnecessary calls to `ignore'
2017-12-07 22:40:48 -08:00
John Wiegley
ae0d243681
Add another :bind test
2017-12-07 22:04:24 -08:00
John Wiegley
4714380696
Add tests for two more issues
2017-12-07 15:06:08 -08:00
John Wiegley
93231ecbab
Fix the tests
2017-12-07 13:23:36 -08:00
John Wiegley
8fefa49d39
Changes to the way auto-deferral is indicated
...
This change adds a new extension hook `use-package-autoloads/<KEYWORD>` for
specifying exactly which autoloads a keyword should imply. This is the proper
way to indicate autoloads, rather than adding to the `:commands` entry as was
done before.
Further, autoloading now must occur in order to cause implied deferred
loading; if :bind is used with only lambda forms, for example, this will not
cause deferred loading without `:defer t`.
2017-12-07 13:14:32 -08:00
John Wiegley
7803571280
Correctly fix the problem of unreferenced symbols after compilation
...
Fixes https://github.com/jwiegley/use-package/issues/571
2017-12-06 20:59:10 -08:00
John Wiegley
20694696b2
Revert "Pre-expand lexical-let, since otherwise it requires cl to be loaded"
...
This reverts commit 7cc17cee8f
.
2017-12-07 04:53:10 +00:00
John Wiegley
7cc17cee8f
Pre-expand lexical-let, since otherwise it requires cl to be loaded
...
Fixes https://github.com/jwiegley/use-package/issues/571
2017-12-06 16:56:25 -08:00
John Wiegley
9a6d8a4cf2
Add a comment as to why max-lisp-eval-depth is set in -tests.el
2017-12-06 10:31:47 -08:00
John Wiegley
e8a7ae1ea1
Add :bind test for a single cons cell
...
Relates to https://github.com/jwiegley/use-package/issues/566
2017-12-06 08:30:47 -08:00
John Wiegley
c272c6b56b
Update some GPL version references
...
Fixes https://github.com/jwiegley/use-package/issues/563
2017-12-06 06:19:15 -08:00
John Wiegley
2cd3ebd5d5
Allow the expansion of :after (:or foo bar) to be byte-compiled
2017-12-06 06:02:28 +00:00
John Wiegley
b2b91af2e5
Make the expanded text for :after cleaner
2017-12-06 06:02:28 +00:00
John Wiegley
3343cca33b
Don't auto-defer if the package itself was given to :load
...
Otherwise, we'd be senselessly waiting for the package to load.
2017-12-05 15:47:53 -08:00
John Wiegley
2a9904b9e8
Enable all tests on Travis
2017-12-05 15:47:41 -08:00
John Wiegley
7b8e94a61a
Default running-on-travis to t
2017-12-05 14:51:44 -08:00
John Wiegley
5f13924885
Enable 4 tests that work when not run on Travis
2017-12-05 14:36:56 -08:00
John Wiegley
cdb250e766
For now, stub out test that breaks Travis
2017-12-05 14:34:15 -08:00
John Wiegley
7c3a6cd70b
Stub some referenced variables, for Travis
2017-12-05 14:27:49 -08:00
John Wiegley
b25a305c58
Lower the priority of :if/:when/:unless in use-package-keywords
...
Fixes https://github.com/jwiegley/use-package/issues/560
2017-12-05 13:26:32 -08:00
John Wiegley
64ffdb6863
Enhance fix-expansion to take surrounding let bindings into account
2017-12-05 13:26:03 -08:00
John Wiegley
65caa3b423
Rewrite normalization of :bind and :bind*
...
Fixes https://github.com/jwiegley/use-package/issues/550
2017-12-05 13:11:30 -08:00
John Wiegley
0a628a2767
Avoid using pcase and many other macros in macro-expanded forms
...
This is related to https://github.com/jwiegley/use-package/issues/550
2017-12-05 11:10:16 -08:00
John Wiegley
a090961f10
Fix bad interaction between bind-keys* and the :package keyword
...
Fixes https://github.com/jwiegley/use-package/issues/558
2017-12-05 10:29:51 -08:00
John Wiegley
ee07e709ea
Fix the case where :ensure is given no arguments
...
Fixes https://github.com/jwiegley/use-package/issues/543
2017-12-04 16:46:46 -08:00
John Wiegley
2790bfc006
Add a bind-key test
2017-12-04 15:43:10 -08:00
John Wiegley
62d33b2143
Support :ensure (pkg :pin archive)
...
Fixes https://github.com/jwiegley/use-package/issues/506
2017-12-04 15:39:31 -08:00