Commit graph

85 commits

Author SHA1 Message Date
John Wiegley
e9b297a9fa Merge pull request from iaeerfung/master
GitHub-reference: https://github.com/jwiegley/use-package/issues/912
2022-08-07 08:40:14 -07:00
John Wiegley
6484e5fdfe Merge pull request from wyuenho/set-default-use-package-enable-imenu-support
GitHub-reference: https://github.com/jwiegley/use-package/issues/920
2022-08-07 08:37:34 -07:00
John Wiegley
a7259411f6 Merge pull request from wyuenho/statistics-sorting
GitHub-reference: https://github.com/jwiegley/use-package/issues/921
2022-08-07 08:37:18 -07:00
Stefan Kangas
cb85f9c274 Fix typo in use-package docstring 2022-06-26 16:14:14 +02:00
Jimmy Yuen Ho Wong
f3ff593a84 Properly sort use-package-statistics-report 2021-03-13 16:29:27 +00:00
Jimmy Yuen Ho Wong
c09cb1301b Fix void-variable use-package-enable-imenu-support 2021-03-07 23:29:19 +00:00
Yurii Kholodkov
40d2541331 fix docstring. was: invalid function name
Copyright-paperwork-exempt: yes
2021-02-16 16:37:58 +03:00
Ted Zlatanov
2b9536f242 Add use-package-use-theme and avoid missing theme errors 2021-02-06 10:46:00 +00:00
Johann Klähn
e3938e7b26 Use a single let binding when expanding consecutive :custom forms
Copyright-paperwork-exempt: yes
2021-02-03 22:55:17 +01:00
Ted Zlatanov
6b7ab46e57 Remove use-package theme from global list of custom-enabled-themes
* eval-when-compile for cases where use-package is only required at
  compile time

* remove the 'use-package theme from custom-enabled-themes so e.g.
  (mapc #'disable-theme custom-enabled-themes)
  won't kill user settings.
2021-01-10 14:20:37 +00:00
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
5ceb51ae19 set property theme-value to avoid saving variable 2020-11-29 12:09:48 +00:00
Ted Zlatanov
3e24a7363b Revert "use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice"
This reverts commit 8c31c57106.
2020-11-29 12:09:48 +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
John Wiegley
99643f8873 Update version to 2.4.1 2020-11-10 13:33:45 -08:00
Ted Zlatanov
13b1e202bf Update the documentation for :custom as per
GitHub-reference: https://github.com/jwiegley/use-package/issues/850
2020-07-12 16:09:10 -04: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
Ted Zlatanov
8c31c57106 use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice 2020-06-22 14:24:09 -04:00
John Wiegley
203d15e34e Merge branch 'master' into call-hooks-even-if-no-config 2020-06-18 11:03:35 -07:00
Nahuel Greco
44c837879e typo, should be a vector, not a bytecode object
Solves https://github.com/jwiegley/use-package/issues/842
2020-05-20 13:44:47 -03: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
John Wiegley
8b8522650e Clarify the documentation for :after 2020-03-04 16:29:16 -08:00
Jonas Bernoulli
8c7fa11a3f Fix typos 2019-11-06 13:49:46 +01:00
Radon Rosborough
4c8d5f0b21 Switch from require' to load' + `featurep' 2019-07-15 22:11:13 -07:00
Radon Rosborough
27fd32c47b Use require', not load', when byte-compiling 2019-07-12 08:25:21 -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
Andrew Stribblehill
95f24f9628 Add a line of documentation for (use-pacakage ... :hook)
Copyright-paperwork-exempt: yes
2019-04-04 11:19:52 +02:00
John Wiegley
7e40a9c424 Merge pull request from conao3/fix_default_value
fix gethash default value for use-package-statistics-time
GitHub-reference: https://github.com/jwiegley/use-package/issues/681
2018-11-19 15:50:27 -08:00
Jonas Bernoulli
fc6fef6869 Silence byte-compiler on Emacs 25
Emacs 25 defined a global variable `features', which triggers a
warning "Lexical argument shadows the dynamic variable features".
That's not `use-package's fault, but we should suppress the warning
anyway, so that there is no additional noise that would cause us to
potentially overlook warnings that absolutely have to be addressed.
2018-11-10 18:52:37 +01:00
Alex Branham
bdd7fd3565 Fix use-package-normalize-function 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
Naoya Yamashita
db35639457 fix gethash default value for use-package-statistics-time
float-time expect list like (HIGH LOW USEC PSEC)
> HIGH has the most significant bits of the seconds, while LOW has the
> least significant 16 bits.  USEC and PSEC are the microsecond and
> picosecond counts.
by `current-time` in editfns.c
2018-05-19 14:21:26 +09:00
Damien Cassou
69a561b86b Fix compile-time warnings due to the statistics-reporting code
The code worked because the file is using dynamic binding.
2018-03-12 08:42:16 +01:00
Damien Cassou
2a47998844 Add missing require
This is used for `hash-table-keys`.

Fix https://github.com/jwiegley/use-package/issues/644.
2018-03-12 08:42:16 +01:00
John Wiegley
cba5a11368 Revert "Fix report" 2018-03-11 21:37:02 -07:00
Damien Cassou
b28efb4847 Fix compile-time warnings due to the statistics-reporting code
The code worked because the file is using dynamic binding.
2018-03-11 13:24:08 +01:00
Damien Cassou
bce655f616 Add missing require
This is used for `hash-table-keys`.

Fix https://github.com/jwiegley/use-package/issues/644.
2018-03-11 13:23:49 +01:00
Damien Cassou
ae22d74a16 Use a tabulated-list to display package configuration statistics
Fix https://github.com/jwiegley/use-package/issues/641
2018-03-08 21:00:31 +01:00
Justin Burkett
46503b194c Fix usage of plist argument in use-package-normalize-plist
Previously the argument was never used.
2018-02-06 12:48:51 -05:00
Justin Burkett
09266283b9 Add use-package-ignore-unknown-keywords option
This option allows use-package to skip over keywords it doesn't recognize.
2018-02-06 11:42:06 -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
4c3abcf4eb Fix byte compiler warnings 2018-01-27 10:19:42 -06:00
Alex Branham
88bcb8b96d Use lexical bindings and remove cl package 2018-01-27 10:01:10 -06:00
Alex Branham
8a6430835f Prefer org-table-align to orgtbl-ctrl-c-ctrl-c
org-table-align is an autoloaded function so the byte compiler can
find it. orgtbl-ctrl-c-ctrl-c isn't so we get a warning about
undefined functions.
2018-01-08 19:21:46 -06:00
John Wiegley
13a9e339f2 Merge pull request from justbur/elisp-cap
Handle automatic macro expansion by elisp-completion-at-point
GitHub-reference: https://github.com/jwiegley/use-package/issues/599
2017-12-26 11:04:41 -08:00
John Wiegley
44cb99fcc7 Merge pull request from nickmccurdy/render-report-table
Render the use-package-report table using Org
GitHub-reference: https://github.com/jwiegley/use-package/issues/592
2017-12-26 11:04:13 -08:00
wouter bolsterlee
1fdfd46fb2 Fix sanity check for correct :custom-face format
Instead of testing the length of each form passed to :custom-face,
the sanity check would test the number of forms passed to :custom-face,
causing it to fail when more than 2 face customisations are used.

Fixes https://github.com/jwiegley/use-package/issues/600.

Copyright-paperwork-exempt: yes
2017-12-20 08:31:56 +01:00