summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow keys to be bound to nilJohn Wiegley2017-11-291-15/+18
| | | | Fixes https://github.com/jwiegley/use-package/issues/525
* Fix a missing `and'John Wiegley2017-11-291-2/+2
|
* Use backquote rather than quoteJohn Wiegley2017-11-291-2/+2
|
* Correct use-package-normalize-modeJohn Wiegley2017-11-291-1/+1
|
* Update version and copyrightJohn Wiegley2017-11-291-6/+6
|
* Allow :bind ("C-c C-c" . (lambda () (ding))) and #'(lambda ...)John Wiegley2017-11-291-124/+176
| | | | | Fixes https://github.com/jwiegley/use-package/issues/333 Fixes https://github.com/jwiegley/use-package/issues/461
* Require Emacs version >= 24.3Basil L. Contovounesios2017-11-291-1/+1
| | | | Re: https://github.com/jwiegley/use-package/issues/457
* Require cl-lib and do not use seq functionsBasil L. Contovounesios2017-11-291-2/+3
| | | | | | cl-lib is also required for a separate call to cl-mapcan. Fixes https://github.com/jwiegley/use-package/issues/520
* When use-package-inject-hooks is non-nil, always fire init/config hooksJohn Wiegley2017-11-281-17/+21
| | | | | | | This used to not happen if `:init` or `:config` was missing, or set to nil as with `:init nil`. Fixes https://github.com/jwiegley/use-package/issues/250
* When byte-compiling, correctly output declare-function directivesJohn Wiegley2017-11-281-0/+3
| | | | Fixes https://github.com/jwiegley/use-package/issues/474
* Make diminish a soft dependency, as delight already wasJohn Wiegley2017-11-281-4/+3
| | | | Fixes https://github.com/jwiegley/use-package/issues/493
* Allow :diminish to take no argument, once againJohn Wiegley2017-11-281-4/+6
|
* Fix for single :custom (foo bar)John Wiegley2017-11-281-1/+3
|
* Allow :custom (foo1 bar1) (foo2 bar2) etcJohn Wiegley2017-11-281-14/+9
| | | | Fixes https://github.com/jwiegley/use-package/issues/518
* Add support for `:hook`John Wiegley2017-11-281-0/+49
| | | | Fixes https://github.com/jwiegley/use-package/issues/444
* Append to *use-package* when debugging, don't clear itJohn Wiegley2017-11-281-9/+8
| | | | Fixes https://github.com/jwiegley/use-package/issues/476
* Make unrecognized keywords a warningJohn Wiegley2017-11-281-1/+4
| | | | | | | This could actually be used to store your own metadata in use-package declarations, to be (read) later by simply parsing init file contents. Fixes https://github.com/jwiegley/use-package/issues/483
* Upgrade license to GPL 3John Wiegley2017-11-281-1/+1
| | | | Fixes https://github.com/jwiegley/use-package/issues/499
* Don't allow :commands, :bind, etc., to be given an empty listJohn Wiegley2017-11-281-2/+2
| | | | | | | | | | This makes the following an error: :commands :commands nil :commands () Fixes https://github.com/jwiegley/use-package/issues/512
* Explicit :defer t should override use-package-always-demandJohn Wiegley2017-11-281-2/+4
| | | | Fixes https://github.com/jwiegley/use-package/issues/514
* Merge pull request from drrlvn/patch-1John Wiegley2017-11-281-1/+0
|\ | | | | | | Remove duplicate documentation of :mode GitHub-reference: https://github.com/jwiegley/use-package/issues/489
| * Remove duplicate documentation of :modeDror Levin2017-07-311-1/+0
| |
* | Corrections to the normalization of :customJohn Wiegley2017-11-281-17/+14
| |
* | Merge pull request from joewreschnig/implicit-diminishJohn Wiegley2017-11-281-1/+3
|\ \ | | | | | | | | | Allow `:diminish` with no arguments. GitHub-reference: https://github.com/jwiegley/use-package/issues/472
| * | Allow `:diminish` with no argumentsJoe Wreschnig2017-07-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When given no arguments, have :diminish assume it should diminish a mode named after the current package (the package’s name, with “-mode” appended, if it’s not already) to an empty string. When given only a string to diminish an implicit package name to, do not append “-mode” to the package name if it already ends with it. (This is a backwards-incompatible change if someone was diminishing a package named “foo-mode” implementing `foo-mode-mode`.) Add test cases for `use-package-normalize-diminish`. This addresses some of the redundancy mentioned in issue https://github.com/jwiegley/use-package/issues/288.
* | | allow customized values to be nilJustin Talbott2017-11-201-1/+2
| | |
* | | Merge pull request from canatella/add-customization-keywordsJohn Wiegley2017-11-201-0/+69
|\ \ \ | | | | | | | | | | | | Add customization keywords GitHub-reference: https://github.com/jwiegley/use-package/issues/508
| * | | Add support for face customizationDamien Merenne2017-11-101-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows customization of faces using customize-set-faces. This makes it easier to manage customization in version control. Instead of having all the faces written in a custom.el, the faces can be customized where the rest of the package is configured.
| * | | Add support for variable customizationDamien Merenne2017-11-101-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows customization of variable using customize-set-variables. This makes it easier to manage customization in version control. Instead of having all the variables written in a custom.el, the variable can be customized where the rest of the package is configured.
* | | | Fix typos in docstringCarl Lieberman2017-10-301-2/+2
|/ / /
* | | Cosmetic changes to use-package-ensure-elpaJonas Bernoulli2017-10-131-8/+9
| | |
* | | Don't use with-demoted-errors in use-package-ensure-elpaJonas Bernoulli2017-10-131-9/+12
| | | | | | | | | | | | | | | It expects a literal string as argument at macro-expansion time, but we need to construct the message.
* | | Merge pull request from raxod502/feat/fix-install-deferredJohn Wiegley2017-08-121-5/+6
|\ \ \ | |_|/ |/| | | | | Fix bug in use-package-install-deferred-package GitHub-reference: https://github.com/jwiegley/use-package/issues/479
| * | Fix bug in use-package-install-deferred-packageRadon Rosborough2017-06-301-5/+6
| | | | | | | | | | | | | | | | | | Previously, deferred installation didn't work because I didn't convert the result of a `completing-read' back from a string to a symbol, which meant the hash-table lookup failed.
* | | Document :delight in the doc string and READMEJoe Wreschnig2017-07-101-0/+1
| |/ |/|
* | Allow :major as the third argument in :delight callsJoe Wreschnig2017-07-021-5/+10
| |
* | Allow multiple :delight arguments, or omitting the mode. ()Joe Wreschnig2017-07-021-13/+38
|/ | | | | | | | | | | | | This allows using forms such as (use-package foo :delight) ;; => (delight 'foo-mode) (use-package foo :delight " f") ;; => (delight 'foo-mode " f") (use-package foo :delight (a-mode) (b-mode " b") ;; => (delight 'a-mode) (delight 'b-mode " b") This brings support for `:delight` in line with `:diminish`. GitHub-reference: https://github.com/jwiegley/use-package/issues/477
* Add `:magic` and `:magic-fallback` keywords (issue)Joe Wreschnig2017-06-151-61/+81
| | | | | | | | These keywords work equivalently to `:mode` or `:interpreter`, but for `magic-mode-alist` and `magic-fallback-mode-alist`. The handler function implementation is now passed a list to add to, and shared by all four of them. GitHub-reference: https://github.com/jwiegley/use-package/issues/469
* Protect against errors during package installDavid Leatherman2017-05-221-1/+1
| | | | | | | | | If the network is missing and there is a new use-package with :ensure, startup would fail part of the way through due package.el being unable to reach the package repo. This will catch that error and report it while allowing startup to continue. Copyright-paperwork-exempt: yes
* Fix quoting error in failed autoload messageRadon Rosborough2017-05-071-1/+1
|
* Make use-package-normalize-value handle nil betterRadon Rosborough2017-04-041-1/+2
| | | | | | | | | | | | The previous version of `use-package-normalize-value', when passed nil, would return the list (symbol-value (quote nil)). This meant that keywords which used `use-package-normalize-value' or the higher-level normalizer `use-package-normalize-test' would get a non-nil argument (i.e. the above list) even when the user specified nil to the package. This had the concrete impact of making it so that :defer-install nil was treated as :defer-install t.
* Add comment explaining keyword-argument patchRadon Rosborough2017-04-031-0/+19
|
* Don't mutilate keyword arguments in :bindRadon Rosborough2017-04-021-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parsing logic in `use-package-normalize-pairs' is not designed to deal with keyword arguments. However, `use-package-normalize-pairs' is used to process the arguments to :bind, which can include keyword arguments. These keyword arguments are supposed to be passed untouched to the underlying `bind-keys' function, but there is a clause in `use-package-normalize-pairs' that replaces lists with their first element. Thus an invocation like: (use-package company :bind (:map company-active-map :filter (company-explicit-action-p) ("RET" . company-complete-selection))) Generates code like this: (bind-keys :map company-active-map :filter company-explicit-action-p ("RET" . company-complete-selection)) Which generates an error since `company-explicit-action-p' is now being referenced as a variable rather than a function. The proper solution is to refactor the logic that goes into parsing uses of :bind, but this commit adds a temporary patch to eliminate the above problem, while trying to be as reverse-compatible as possible. In particular it just inhibits the list-to-first-element transformation when the previous element processed was a keyword.
* Merge pull request from raxod502/fix-afterJohn Wiegley2017-03-271-1/+1
|\ | | | | | | Fix :after keyword GitHub-reference: https://github.com/jwiegley/use-package/issues/439
| * Fix :after keywordRadon Rosborough2017-03-191-1/+1
| | | | | | | | | | | | | | | | Commit [1] broke the functionality of :after (see [2]) due to an extraneous quote being added. [1]: bd2afa53c7580d23ed8008267b80e1834b6e6600 [2]: https://github.com/jwiegley/use-package/pull/433#issuecomment-287606553
* | Add use-package-always-defer-installRadon Rosborough2017-03-261-1/+9
|/ | | | See https://github.com/jwiegley/use-package/pull/433#issuecomment-289317875
* Merge remote-tracking branch 'origin/master' into defer-installRadon Rosborough2017-03-181-44/+105
|\ | | | | | | Resolve merge conflicts.
| * Revert "Return `t' after calling `eval-after-load'"John Wiegley2017-02-181-4/+2
| | | | | | | | This reverts commit 87a8ff6d693f3cc79ea423ca8c8e0a60b0bc596c.
| * Support multiple symbols passed to :afterJohn Wiegley2017-02-161-10/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following expressions are now permitted: foo ; load after foo is loaded foo bar ; load after both foo and bar are loaded :all foo bar ; same as previous :any foo bar ; load after either foo or bar is loaded :any (:all foo bar) baz ; more complex combinations... :any (:all foo bar) (:all baz wow) :all (:any foo bar) (:any baz wow) Fixes https://github.com/jwiegley/use-package/issues/283
| * :mode and :interpreter can now accept (rx ...) formsJohn Wiegley2017-02-161-1/+28
| | | | | | | | Fixes https://github.com/jwiegley/use-package/issues/204