Jonas Bernoulli
719115cf47
Allow using expanded macro without loading feature
...
In the macro `use-package-with-elapased-timer' use `bound-and-true-p'
go get the values of the customizable options `use-package-verbose'
and `use-package-minimum-reported-time'. This way the library only
has to be required at compile time, provided these options are not
actually customized. If the user has changed the values, then she
also has to load the library at runtime or the macros fall back to
the default of doing their job silently. See https://github.com/jwiegley/use-package/issues/149 .
2015-01-18 11:41:13 +01:00
John Wiegley
89a957efa9
Merge pull request from killdash9/keymap
...
Passing t into keymap function
GitHub-reference: https://github.com/jwiegley/use-package/issues/145
2015-01-04 00:23:22 -06:00
Russell Black
b8f0799ce8
Passing t into keymap function
2015-01-03 13:53:38 -07:00
John Wiegley
60029cb0ab
Merge pull request from killdash9/keymap
...
:bind-keymap - bind a key prefix to an autoloaded package keymap
GitHub-reference: https://github.com/jwiegley/use-package/issues/142
2015-01-02 20:09:31 -06:00
John Wiegley
7252e29ec4
Merge pull request from thiagowfx/patch-1
...
fix small typo (key > keymap)
GitHub-reference: https://github.com/jwiegley/use-package/issues/144
2015-01-02 17:32:19 -06:00
Thiago Barroso Perrotta
7db9b920df
fix small typo (key > keymap)
2015-01-02 13:58:49 -02:00
Russell Black
1ae2236854
:bind-keymap - bind a key prefix to an autoloaded package keymap
2014-12-31 17:02:25 -07:00
John Wiegley
647950fd16
Merge pull request from vermiculus/master
...
Do not quote lambda expressions
GitHub-reference: https://github.com/jwiegley/use-package/issues/140
2014-12-20 18:45:21 -06:00
Sean Allred
5a5aeca797
Do not quote lambda expressions
...
http://emacs.stackexchange.com/a/3596
Quoting lambda expressions is at best redundant and at worst
detrimental; this commit removes all use of the sharp-quote to reduce
confusion.
2014-12-19 23:12:47 -05:00
John Wiegley
f8db1f1740
Merge pull request from YoungFrog/fixautoloads
...
Don't add autoload for existing commands
GitHub-reference: https://github.com/jwiegley/use-package/issues/138
2014-12-17 15:53:42 -06:00
John Wiegley
99642725c1
Merge pull request from peterhoeg/master
...
Check if an archive is valid when pinning
GitHub-reference: https://github.com/jwiegley/use-package/issues/137
2014-12-17 14:52:39 -06:00
Peter Hoeg
b3bf1b2587
Check if package-archives are valid when pinning
2014-12-18 04:34:49 +08:00
Nicolas Richard
a2b23f8326
Don't add autoload for existing commands
2014-12-17 18:30:50 +01:00
Peter Hoeg
435d4b4078
pure cleanup
2014-12-17 05:45:53 +08:00
John Wiegley
18f04bfb99
Merge pull request from peterhoeg/master
...
Support for pinning package to archive
GitHub-reference: https://github.com/jwiegley/use-package/issues/136
2014-12-16 13:29:02 -06:00
Peter Hoeg
fe7fe61528
support for pinning package to archive
2014-12-11 14:44:27 +08:00
John Wiegley
6570447a05
Merge pull request from Silex/master
...
Fix "compiling" typo
GitHub-reference: https://github.com/jwiegley/use-package/issues/125
2014-09-18 21:33:08 +01:00
John Wiegley
0bfa356148
Merge pull request from waymondo/master
...
Add :bind* keyword for `bind-key*`
GitHub-reference: https://github.com/jwiegley/use-package/issues/126
2014-09-18 21:32:55 +01:00
Justin Talbott
e8ce1b20ca
add :bind* keyword for bind-key*
2014-09-16 16:39:21 -04:00
Philippe Vaucher
f07ecde5a1
Fix "compiling" typo
2014-09-16 18:34:42 +02:00
John Wiegley
4c927efbd5
Merge pull request from thomasf/master
...
Display which package that has compile errors
GitHub-reference: https://github.com/jwiegley/use-package/issues/124
2014-09-14 14:26:57 +01:00
Thomas Frössman
351c102010
Display which package that has compile errors
2014-09-14 12:57:44 +02:00
John Wiegley
4cf50ffbca
Merge pull request from tarsius/master
...
assume the declare-function macro exists
GitHub-reference: https://github.com/jwiegley/use-package/issues/123
2014-09-08 16:06:16 +01:00
Jonas Bernoulli
31bb0cde56
assume the declare-function macro exists
...
Since `declare-function' was added in Emacs 23.1 (five years ago), we
don't need to assert that it is defined. If the assertion was without
any problems there would be no harm in keeping it, but unfortunately it
causes a compile warning. Because `declare-function' is a macro with
always expands to `nil' the value of (fboundp 'declare-function) ends
up being unused.
2014-09-07 14:43:56 +02:00
John Wiegley
91953b08e0
Merge pull request from BernardHurley/master
...
bind-keys macro changed to allow prefix map to have a menu string.
GitHub-reference: https://github.com/jwiegley/use-package/issues/112
2014-06-20 13:43:18 -07:00
Bernard Hurley
471869269a
bind-keys macro changed to allow prefix map to have a menu string
2014-06-20 05:45:51 +01:00
John Wiegley
3cbf510468
Merge pull request from npostavs/desc-vector
...
Avoid putting vector key sequences in personal-keybindings
GitHub-reference: https://github.com/jwiegley/use-package/issues/110
2014-05-31 14:42:14 -05:00
Noam Postavsky
b3e96443ad
bind-key: cleanup
2014-05-31 15:21:44 -04:00
Noam Postavsky
de9f6814e7
bind-key: no vector keys in personal-keybindings
...
describe-personal-keybindings requires the key sequences to be stored as
strings.
2014-05-31 15:03:58 -04:00
Noam Postavsky
91b439c8e7
personal-keybindings: add docstring
...
fix typo in bind-key docstring
2014-05-31 15:03:58 -04:00
John Wiegley
0d0e8db731
Merge pull request from alezost/bind-keys
...
Add bind-keys*
GitHub-reference: https://github.com/jwiegley/use-package/issues/107
2014-05-25 12:09:09 -05:00
Alex Kost
c4ebcaa953
Add bind-keys* macro
2014-05-25 17:33:20 +04:00
John Wiegley
2d67e1dca1
Merge pull request from thomasf/master
...
Don't abort compiling package loading fails
GitHub-reference: https://github.com/jwiegley/use-package/issues/106
2014-05-17 06:45:36 -05:00
Thomas Frössman
1c82b2377f
Don't abort compiling if package loading fails
2014-05-17 10:48:20 +02:00
John Wiegley
a4939e7ef3
Revert "Merge pull request from alexko/master"
...
This reverts commit 8c04377608 , reversing
changes made to a9ba368fa7 .
GitHub-reference: https://github.com/jwiegley/use-package/issues/104
2014-05-08 13:25:39 -05:00
John Wiegley
8c04377608
Merge pull request from alexko/master
...
if package can't be located, treat it the same way as disabled
GitHub-reference: https://github.com/jwiegley/use-package/issues/104
2014-05-07 12:24:10 -05:00
John Wiegley
a9ba368fa7
Merge pull request from YoungFrog/fix-mult-mode
...
Eval backquote earlier and support non-`progn' lists.
GitHub-reference: https://github.com/jwiegley/use-package/issues/95
2014-05-07 02:42:27 -05:00
Alex Kosorukoff
6d02a320f6
if package can't be located, treat it the same way as disabled
...
There will be a message "Unable to locate <package-name>" in the log.
2014-05-06 20:38:14 -07:00
Nicolas Richard
4e80d29daf
Eval backquote earlier and support non-`progn' lists
...
* use-package.el (use-package-plist-get): add optional args: `eval-backquote'
and `no-progn' to control how arguments are retrieved.
(use-package-plist-get-value): remove this function
(use-package): replace calls to old function to modified function.
Fixes issue https://github.com/jwiegley/use-package/issues/94 .
Rationale :
- use-package-plist-get-value was just another layer for no good reason,
and IMO its name was totally unclear.
- we now eval-as-backquote earlier, allowing constructs like:
(let ((my-list-of-commands-in-foo '(foo1 foo2)))
(use-package foo :commands ,@my-list-of-commands-in-foo))
2014-05-05 12:14:53 +02:00
John Wiegley
d63972eb29
Merge pull request from YoungFrog/keynameeval
...
* bind-key.el (bind-key): don't eval key-name at macro expansion time.
GitHub-reference: https://github.com/jwiegley/use-package/issues/102
2014-04-14 19:44:04 -05:00
Nicolas Richard
9ca3690b59
* bind-key.el (bind-key): don't eval key-name at macro expansion time
2014-04-14 19:59:01 +02:00
John Wiegley
978094589e
Merge pull request from npostavs/bind-vectors
...
bind-keys: bind directly to prefix-map
GitHub-reference: https://github.com/jwiegley/use-package/issues/101
2014-04-14 08:35:39 -05:00
Noam Postavsky
01196c81ac
bind-keys: bind directly to prefix-map
...
instead of constructing equivalent key sequence by string concatenation.
This allows specifying vector key sequences, as in bind-key (since
f0776c2aeb ).
2014-04-14 00:03:36 -04:00
Noam Postavsky
869ff53ab9
bind-keys: ,@(when map (list map)) => map
...
Omitting map is same as passing nil.
2014-04-14 00:03:35 -04:00
Noam Postavsky
053a1514a1
fix typo
...
Actually the reader accepts (list 'a'b) = (list 'a 'b); it still looks
wrong.
2014-04-14 00:02:48 -04:00
John Wiegley
efe2419a22
Merge pull request from YoungFrog/idle-interval
...
Add new option use-package-idle-interval.
GitHub-reference: https://github.com/jwiegley/use-package/issues/99
2014-03-17 14:13:20 -05:00
Nicolas Richard
0ab0d77691
Add new option use-package-idle-interval
...
* use-package.el (use-package-idle-interval): new defcustom
(use-package-start-idle-timer): use it
(use-package-idle-eval): use it
* README.md: document it
This addresses bug https://github.com/jwiegley/use-package/issues/77
2014-03-17 16:22:43 +01:00
John Wiegley
db9cba9a31
Merge pull request from ffevotte/idle-priority
...
Add a :idle-priority keyword to change the running order of idle functions
GitHub-reference: https://github.com/jwiegley/use-package/issues/98
2014-03-17 04:11:36 -05:00
François Févotte
6b30c15823
:idle-priority keyword to change the running order of idle functions
...
Lower-priority idle functions are run first. Idle functions with no
specified priority default to 5 and all functions with the same priority
are run in the order in which they are evaluated, meaning the behaviour
is backwards compatible.
Updated documentation as well.
2014-03-17 10:03:06 +01:00
John Wiegley
c7ff480095
Merge pull request from tarsius/master
...
use-package-with-elapsed-timer: respect option at runtime
GitHub-reference: https://github.com/jwiegley/use-package/issues/96
2014-03-10 05:04:59 -05:00