Commit graph

532 commits

Author SHA1 Message Date
John Wiegley
6c2fdaffd9 Revert "Remove use-package-font-lock-keywords"
This reverts commit 4938167bff.
2022-08-18 22:53:04 -07:00
John Wiegley
09e837dfae Merge pull request from belak/remove-extra-font-lock-keywords
GitHub-reference: https://github.com/jwiegley/use-package/issues/859
2022-08-18 17:27:55 -07:00
realcomplex
a05b9e28ed Go back to making override-global-mode non-global
Copyright-paperwork-exempt: yes
2022-08-11 09:08:25 +02:00
Koen van Greevenbroek
85c1287c26 Make sure that bind-key's override-global-mode is initially on
In 4004dde the arguments to `define-minor-mode` were changed
erroneously. Whereas the `override-global-mode` was initially defined
as `(define-minor-mode override-global-mode "..." t "")`, the two
latter arguments where changed to `:global t :lighter ""`. However,
the two original arguments corresponded to the keywords `:init-value`
and `:lighter`, respectively.

With `:init-value t` now missing, the minor mode isn't enabled by
default, and `bind-key*` appears not to work.

Copyright-paperwork-exempt: yes
2022-08-10 11:47:07 +02:00
Jonas Bernoulli
53c1889342 Quote single quotes in docstrings or use different quoting
The byte-compiler started pointing this out:
  Warning: docstring has wrong usage of unescaped single
  quotes (use \= or different quoting)
2022-08-08 23:06:34 +02:00
John Wiegley
0dc78ef4c8 Merge pull request from conao3/fix-declare-style
GitHub-reference: https://github.com/jwiegley/use-package/issues/760
2022-08-07 08:58:26 -07:00
John Wiegley
2967849846 Merge pull request from waymondo/ensure-system-packages-use-package-as-one
GitHub-reference: https://github.com/jwiegley/use-package/issues/774
2022-08-07 08:58:12 -07:00
John Wiegley
28e7b96fcf Merge pull request from waymondo/use-package-hook-handler-flatten-mode-symbols
GitHub-reference: https://github.com/jwiegley/use-package/issues/775
2022-08-07 08:57:58 -07:00
John Wiegley
b1fbfe66eb Merge pull request from waymondo/use-package-chords-autoloading-and-mapping-improvements
GitHub-reference: https://github.com/jwiegley/use-package/issues/778
2022-08-07 08:56:56 -07:00
John Wiegley
cf3bfecced Merge pull request from matzebond/master
GitHub-reference: https://github.com/jwiegley/use-package/issues/787
2022-08-07 08:56:06 -07:00
John Wiegley
a0ba027ee5 Merge pull request from wcy123/master
GitHub-reference: https://github.com/jwiegley/use-package/issues/822
2022-08-07 08:53:36 -07:00
John Wiegley
ca426a7732 Merge pull request from phst/lex
GitHub-reference: https://github.com/jwiegley/use-package/issues/848
2022-08-07 08:49:45 -07:00
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
John Wiegley
de0c8c36c7 Merge pull request from Hugo-Heagren/bind-keys-repeat-map
GitHub-reference: https://github.com/jwiegley/use-package/issues/974
2022-08-07 08:30:25 -07:00
John Wiegley
015c921a2e Merge pull request from danielpza/add-update-custom-package
GitHub-reference: https://github.com/jwiegley/use-package/issues/930
2022-08-07 08:28:07 -07:00
John Wiegley
b143663f12 Merge pull request from tarsiiformes/silencio
GitHub-reference: https://github.com/jwiegley/use-package/issues/936
2022-08-07 08:27:29 -07:00
Matthias Schmitt
620fe443c2 Add: 'local' keyword 2022-07-11 01:58:46 +02:00
Jonas Bernoulli
4004dde6ea Avoid positional arguments to define-minor-mode
Back in Emacs-21.1, `define-minor-mode' grew keyword arguments to
replace its old positional arguments.  Starting with Emacs-28.1
a warning will be omitted if positional arguments are still used.
2022-06-26 17:07:04 +02:00
Stefan Kangas
cb85f9c274 Fix typo in use-package docstring 2022-06-26 16:14:14 +02:00
Wang Chunye
9be2580f5f optimization: constand folding for read-kbd-macro
to boost startup performance, it is better to avoid invoking
`read-kbd-macro` at run time which requires 'cl-lib.

it takes ~20ms to load cl-lib

Copyright-paperwork-exempt: yes
2022-02-06 21:23:46 +08:00
Hugo Heagren
1143f14d65 bind-keys-form: error for repeat sub-keywords without :repeat-map
Error descriptively if :continue or :exit is specified without
:repeat-map.
2022-01-28 22:37:37 +00:00
Hugo Heagren
c4bd2aa3b8 bind-key-form: allow :continue keyword inside repeat map
Purely syntactic sugar, using :continue is the same as not using any
keyword inside :repeat-map at all.

Amend end of function to pass repeat-map value onto next invocation in
recursive uses. This allows for the same repeat map to be used for
:exit and :continue.
2022-01-28 22:37:37 +00:00
Hugo Heagren
5ef327ce9f bind-key-form: allow :exit keyword inside repeat map
Keys bound inside the scope of :exit are bound inside the repeat map,
but do not have their repeat-map property set (so they run a function,
but 'exit' the map).
2022-01-28 22:37:37 +00:00
Hugo Heagren
2203246454 bind-keys-form: new keyword :repeat-map, for defining repeat maps
use-package-normalize/:bind: allow keyword :repeat-map.

bind-keys-form: Add keyword :repeat-map. Specifying a symbol as the
repeat-map defines a keymap with that name (and with the docstring
`repeat-doc', if specified). Symbols for functions bound to keys under
the scope of :repeat-map have their 'repeat-map property set to this
map. Update docstring (and that of `bind-keys') to reflect changes.

Rename `doc' to `prefix-doc' for clarity and consistency with
'repeat-doc'.
2022-01-28 22:37:06 +00:00
Daniel Perez Alvarez
1343783532 feat: add update custom packages command
Copyright-paperwork-exempt: yes
2021-04-17 17:08:35 -04: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
Daniel Mendler
5ca7bc321d unbind-key: Ensure that keys are removed from the keymap
* The removal from the keymap is performed by bind-key--remove
* Use the same argument normalization as bind-key
2021-02-10 15:34:12 +01:00
Daniel Mendler
ec750952f4 bind-key: Use new symbols for kmapvar 2021-02-10 15:23:44 +01: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
Kaleb Elwert
4938167bff Remove use-package-font-lock-keywords
Copyright-paperwork-exempt: yes
2020-08-11 01:44:31 -07:00
Philipp Stephani
5bd7e0ca7d Migrate remaining files to lexical binding 2020-08-03 21:37:34 +02:00
Jimmy Yuen Ho Wong
1f54de9210 Merge branch 'master' into patch-1 2020-07-22 02:05:31 +01: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
Jimmy Yuen Ho Wong
950068809b Support keymap symbol in bind-key
GitHub-reference: fix https://github.com/jwiegley/use-package/issues/845
2020-07-08 04:46:56 +01: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