Commit graph

210 commits

Author SHA1 Message Date
Justin Burkett
da08a04652 Fix imenu support for older versions
lisp-mode-symbol-regexp was not defined in Emacs 24.5.
2016-06-13 21:02:14 -04:00
John Wiegley
1d6b3174f5 Merge pull request from justbur/imenu
Add imenu support for use-package forms
GitHub-reference: https://github.com/jwiegley/use-package/issues/354
2016-06-13 09:57:20 -07:00
Justin Burkett
d34fb2bdc9 Add imenu support for use-package forms
Also add require forms and group both under menu "Package".
2016-06-13 09:45:27 -04:00
robario
858a7f9b7c Fix to ignore load error caused via :after
Copyright-paperwork-exempt: yes
2016-06-05 14:58:40 +09:00
Chunyang Xu
3aa6aecb7f Mark package as selected with package-install
Fixes https://github.com/jwiegley/use-package/issues/327
2016-03-31 19:33:55 +08:00
John Wiegley
a1c4e6d0ab Normalize some error text 2016-02-26 16:18:21 -08:00
John Wiegley
f150691c78 Only printing debug messages if use-package-verbose is `debug'
Fixes https://github.com/jwiegley/use-package/issues/271
2016-02-26 16:16:49 -08:00
John Wiegley
6a90a9f16d Add configuration variable `use-package-check-before-init'
Fixes https://github.com/jwiegley/use-package/issues/306
2016-02-25 17:24:59 -08:00
John Wiegley
ce51ea2055 Use add-to-list' defensively instead of push'
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/293
2016-02-25 17:13:02 -08:00
John Wiegley
6da4e0ce9d Add variable `use-package-always-defer'
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/202
2016-02-25 17:04:17 -08:00
John Wiegley
eeba14ef07 Restore :bind-keymap, it does something special still 2016-02-25 16:41:09 -08:00
John Wiegley
828563a756 Remove :bind-keymaps, and only apply :map bindings after load 2016-02-25 16:37:34 -08:00
John Wiegley
856e8ee245 Support multiples uses of :map with :bind
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/121
2016-02-25 15:57:50 -08:00
John Wiegley
947345028e Add another `declare' 2016-02-25 15:16:04 -08:00
John Wiegley
c65a334276 Handle :unless correctly
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/197
2016-02-25 15:08:32 -08:00
John Wiegley
543935482f Add a comment about a recent change 2016-02-09 19:33:09 -05:00
John Wiegley
416096bfdc Merge pull request from waymondo/master
Allow string values in cons for :bind keywords
GitHub-reference: https://github.com/jwiegley/use-package/issues/303
2016-02-09 19:31:48 -05:00
John Wiegley
ee8ac83641 Add an autoload cookie for `use-package' 2016-02-06 14:56:43 -05:00
Thierry Volpiatto
c5e98d87da Ensure package-install support a second argument
* use-package.el (use-package-ensure-elpa): Do it.
2016-02-04 11:19:23 +01:00
Thierry Volpiatto
5cbfd926c5 When :ensure is used install package as a selected package
Also shutup bytecompiler about package-archive-contents.

* use-package.el (use-package-ensure-elpa): Add package to selected package
by using second arg of package install.
2016-02-04 10:20:55 +01:00
John Wiegley
9e2dcf8655 Merge pull request from kovrik/fix-pin-performance
Do not package-initialize on each :pin
GitHub-reference: https://github.com/jwiegley/use-package/issues/308
2016-01-25 12:58:02 -05:00
Phillip Lord
ba4aeb600d Fix errant variable name 2016-01-21 09:06:28 +00:00
Phillip Lord
f4a01f3e00 Add new option `-always-pin'
`use-package-always-pin' allows a default archive (or manual) to be
specified for all use-package statements, unless explicitly overridden.
2016-01-20 22:02:26 +00:00
Ivan Goncharov
c42e3f5669 Change condition that checks if package has been initialized 2016-01-20 10:51:20 +13:00
Ivan Goncharov
19474a1711 Do not package-initialize on each :pin 2016-01-18 14:41:27 +13:00
John Wiegley
38c170e17b Merge pull request from kovrik/issue-299
Move :pin out of macro expansion phase
GitHub-reference: https://github.com/jwiegley/use-package/issues/302
2016-01-12 16:01:19 -05:00
Justin Talbott
cd867dfe2f allow string values in cons for :bind keywords
It is possible with `bind-key` and `define-key` (and also `bind-chord`
and `key-chord-define`) to define a binding to a string's value, i.e:

``` elisp
(bind-key "C-;" "the ")
(bind-chord "^^" "λ")
```

This adds an option for `(use-package-normalize-pairs)` that allows
string values to be given with the `:bind` (and also `:chord`) keywords
to expand into these definitions.
2016-01-08 14:35:17 -05:00
John Wiegley
95038f96f1 Guard against a case where :load-paths is nil 2016-01-06 15:50:43 -08:00
Ivan Goncharov
d1c78a646c Move :pin out of macro expansion phase fixes 2016-01-06 12:56:54 +13:00
Ivan Goncharov
308e4e3f2c Move :pin out of macro expansion phase 2016-01-06 11:15:22 +13:00
Ivan Goncharov
d9f37b4f0c Install packages when byte-compiling (fix by @npostavs) 2015-11-13 11:08:02 +13:00
John Wiegley
b1f442c15b Apply a fix from npostavs relating to
GitHub-reference: https://github.com/jwiegley/use-package/issues/279
2015-11-09 17:33:05 -08:00
John Wiegley
734c5e7119 Merge pull request from kovrik/master
Move :ensure option execution from macro expansion phase to runtime phase
GitHub-reference: https://github.com/jwiegley/use-package/issues/273
2015-11-09 18:58:21 -05:00
Phillip Lord
564f9bb74b Support for after keyword
After provides `eval-after-load' functionality for any number of
features. This helps to avoid deeply nested `use-package' statements.

Closes https://github.com/jwiegley/use-package/issues/274
2015-11-04 22:50:48 +00:00
Ivan Goncharov
ac47f783da Move :ensure option from macro expansion phase to runtime phase 2015-11-03 14:43:51 +13:00
John Wiegley
ff8bdfcdca Bump version to 2.1 2015-09-26 08:46:44 -07:00
Justin Talbott
6298e7e477 pass in symbol of bind macro, for more extensible re-use of same handler
related to https://github.com/jwiegley/use-package/issues/258
2015-09-23 11:06:58 -04:00
John Wiegley
3e2747f174 Revert "Merge pull request from edvorg/master"
This reverts commit 38b213c6c382f87b7f6e60d0c97d37f2951c2482, reversing
changes made to 7d34df4f5dd26b6d8b0899e6508c9af5dedf2dc4.
GitHub-reference: https://github.com/jwiegley/use-package/issues/247
2015-09-06 20:51:31 -07:00
Edward Knyshov
9c1156dbf8 error handling for use-package
GitHub-reference: https://github.com/jwiegley/use-package/issues/246
2015-08-30 11:23:49 +03:00
Aleksey Kladov
d514592746 fix quotation error 2015-08-17 23:41:28 +03:00
Noam Postavsky
3cdc6c39bf Re-add support for string package names
e.g. (use-package "isearch") rather than (use-package isearch)
2015-08-14 16:05:08 -04:00
Nick Alcock
1cbcd66ebe Support :bind (:map '(...))
We transform it into (:map foo (...) (...)) in the normalizer, and
no longer warn about unknown sorts of arg.
2015-07-31 12:30:39 +01:00
John Wiegley
269b1080ae Merge pull request from thomasf/master
Refresh package.el archives if package is missing.
GitHub-reference: https://github.com/jwiegley/use-package/issues/210
2015-06-22 12:44:34 -05:00
John Wiegley
d3f47a7401 Merge pull request from killdash9/keymap
bind-keymap fixes.
GitHub-reference: https://github.com/jwiegley/use-package/issues/199
2015-06-11 21:03:34 -05:00
Sylvain Benner
90e3f48111 Fix calls to run-hooks for :init and :config injected hooks 2015-05-19 21:07:30 -04:00
Thomas Frössman
6f0586ef52 Refresh package.el archives if package is missing 2015-05-08 12:19:35 +02:00
Russell Black
a53b5062c4 bind-keymap fixes
Override argument no longer ignored.  Not adding keymap to list of
commands. `eval' no longer appears to be necessary, using direct
invocation of bind-key*.
2015-04-11 18:08:58 -06:00
John Wiegley
f1a00054b1 Keymap bindings must be interactive 2015-03-25 18:14:49 -05:00
John Wiegley
c850481d06 Failed to require a package is just a message 2015-03-24 22:30:48 -05:00
John Wiegley
d1e91745b3 Minor fix to :diminish 2015-03-24 21:59:10 -05:00