summaryrefslogtreecommitdiff
path: root/lisp/use-package
Commit message (Collapse)AuthorAgeFilesLines
* [] Install system packages using system-packages-installLaurence Rochfort2018-09-121-10/+12
| | | | | | | | | | | | | | | | | | | :ensure-system-package was installing packages by running system-packages-get-command via async-shell-command. This meant that system-packages-use-sudo wasn't being honoured. This patch makes :ensure-system-package use system-packages-install for all cases, except where a custom install command is supplied, in which case async-shell-command is used. This issue was introduced in 9f034a0bcfdd8c4 [https://github.com/jwiegley/use-package/issues/673], as a fix for [https://github.com/jwiegley/use-package/issues/661]. Prior to that commit, system-packages-use-sudo was being honoured. This patch also fixes a bug where a cons containing a lone symbol in a list of conses causes nil to used as the package to install. GitHub-reference: fix https://github.com/jwiegley/use-package/issues/720 Copyright-paperwork-exempt: yes
* Merge pull request from justbur/autoload-keymapJohn Wiegley2018-07-151-1/+2
|\ | | | | | | Correct prefix keys after use-package-autoload-keymap GitHub-reference: https://github.com/jwiegley/use-package/issues/686
| * Correct prefix keys after use-package-autoload-keymapJustin Burkett2018-06-031-1/+2
| | | | | | | | | | | | | | | | | | | | By adding events of the form (cons t event) to unread-command-events, Emacs correctly updates this-command-keys for the subsequent use of the prefix. Before this change, packages like my which-key were not getting the correct prefix after use-package-autoload-keymap loaded the relevant package. See https://github.com/justbur/emacs-which-key/issues/192
* | allow :ensure-system-package to check the presence of files at pathJustin Talbott2018-07-091-1/+8
| | | | | | | | closes https://github.com/jwiegley/use-package/issues/660
* | Place :chords at beginning of use-package-keywordsRussell Black2018-06-281-1/+1
| | | | | | | | When it is at the end, the keys don't get bound until after the package has been loaded, which is bad. Placing it at the beginning allows the key bindings to be mapped to auto-loaded functions before the package is loaded, so that a key chord press triggers the package load.
* | Merge branch 'master' into patch-1John Wiegley2018-06-2511-81/+75
|\ \
| * | Fix use-package-normalize-functionAlex Branham2018-06-131-1/+1
| | |
| * | Enable lexical bindingAlex Branham2018-06-1310-65/+65
| |/ | | | | | | This supersedes https://github.com/jwiegley/use-package/issues/617 and closes https://github.com/jwiegley/use-package/issues/648
| * Ensure system package cleanupArtyom Khramov2018-05-201-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The function introduced in https://github.com/jwiegley/use-package/issues/673 wasn't declared at compile time, and it made byte compiler unhappy. Moreover, it was forgotten to remove redundant compile time variables. Thanks @tarsius for pointing that out. This change * Removes redundant variable declarations * Adds `system-packages-get-command` function declaration. Copyright-paperwork-exempt: yes
| * Document that remapping commands is supported with bind-keyAndrew Schwartzmeyer2018-04-301-0/+6
| | | | | | | | Copyright-paperwork-exempt: yes
| * [] ensure-system-package: honor system-packages customizationsArtyom Khramov2018-04-261-12/+2
| | | | | | | | | | | | | | | | | | | | | | ensure-system-package doesn't honor system-packages customizations (https://github.com/jwiegley/use-package/issues/661), because system-packages didn't provide an API to retrieve shell command to be executed. This change makes use of the new system-packages' `system-package-get-command` function and therefore fixes the issue. GitHub-reference: fix https://github.com/jwiegley/use-package/issues/661 Copyright-paperwork-exempt: yes
* | Update use-package-chords.elRussell Black2018-03-231-13/+4
| |
* | Update use-package-chords.elRussell Black2018-03-231-0/+3
|/ | | | new style of auto-deferral for chords
* :ensure-system-package allow cdr of cons to be a package name symbolJustin Talbott2018-03-161-1/+5
| | | | closes https://github.com/jwiegley/use-package/issues/652
* Fix compile-time warnings due to the statistics-reporting codeDamien Cassou2018-03-121-18/+18
| | | | The code worked because the file is using dynamic binding.
* Add missing requireDamien Cassou2018-03-121-0/+6
| | | | | | This is used for `hash-table-keys`. Fix https://github.com/jwiegley/use-package/issues/644.
* Revert "Fix report"John Wiegley2018-03-111-19/+18
|
* Fix compile-time warnings due to the statistics-reporting codeDamien Cassou2018-03-111-18/+18
| | | | The code worked because the file is using dynamic binding.
* Add missing requireDamien Cassou2018-03-111-0/+1
| | | | | | This is used for `hash-table-keys`. Fix https://github.com/jwiegley/use-package/issues/644.
* Use a tabulated-list to display package configuration statisticsDamien Cassou2018-03-081-24/+54
| | | | Fix https://github.com/jwiegley/use-package/issues/641
* Support ":package" in use-packageMatthew Justin Bauer2018-02-251-1/+3
| | | | bind-key supports the keyword ":package" but use-package does not know that. Adding this should be helpful. In the future, maybe we could automatically fill in with the use-package package, but that could be a breaking change.
* Fix usage of plist argument in use-package-normalize-plistJustin Burkett2018-02-061-1/+2
| | | | Previously the argument was never used.
* Add use-package-ignore-unknown-keywords optionJustin Burkett2018-02-061-2/+15
| | | | This option allows use-package to skip over keywords it doesn't recognize.
* Revert "Merge pull request from jabranham/lexical-bindings"John Wiegley2018-01-279-60/+60
| | | | | This reverts commit d21787f1d64a740c0e00899835d9200a0e4690df, reversing changes made to fd8a3510fd1a555b925f57b2870917e3c4ea0206. GitHub-reference: https://github.com/jwiegley/use-package/issues/617
* Revert "Move variable bindings to the bottom of each file"John Wiegley2018-01-279-52/+11
| | | | This reverts commit c29193bf0724633adf7183dad2d0b6faf7d029ab.
* Move variable bindings to the bottom of each fileJohn Wiegley2018-01-279-11/+52
|
* Don't remove sharp quotesAlex Branham2018-01-271-21/+21
|
* Fix byte compiler warningsAlex Branham2018-01-275-70/+71
|
* Use lexical bindings and remove cl packageAlex Branham2018-01-279-10/+9
|
* lexical bindingAlex Branham2018-01-261-1/+1
|
* Prefer non-obsolete var namesAlex Branham2018-01-261-6/+6
|
* Prefer org-table-align to orgtbl-ctrl-c-ctrl-cAlex Branham2018-01-081-1/+1
| | | | | | 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.
* Merge pull request from justbur/elisp-capJohn Wiegley2017-12-261-0/+9
|\ | | | | | | Handle automatic macro expansion by elisp-completion-at-point GitHub-reference: https://github.com/jwiegley/use-package/issues/599
| * Handle automatic macro expansion by elisp-completion-at-pointJustin Burkett2017-12-191-0/+9
| | | | | | | | | | | | | | | | | | | | The function `elisp--local-variables' inserts an unbound variable, `elisp--witness--lisp', into macro forms to determine the locally bound variables for `elisp-completion-at-point'. It ends up throwing a lot of errors since it can occupy the position of a keyword (or look like a second argument to a keyword that takes one). Deleting it when it's at the top level should be harmless since there should be no locally bound variables to discover here anyway.
* | Merge pull request from nickmccurdy/render-report-tableJohn Wiegley2017-12-261-0/+3
|\ \ | | | | | | | | | Render the use-package-report table using Org GitHub-reference: https://github.com/jwiegley/use-package/issues/592
| * | Render the use-package-report table using OrgNick McCurdy2017-12-161-0/+3
| | | | | | | | | | | | | | | | | | | | | I noticed that the "Gathering Statistics" instructions for rendering the Org table could be automated for convenience. Now the table is reformatted automatically, and you can still manually sort it. I'm not sorting it by default to maintain the same order of use-package forms for easier troubleshooting.
* | | Fix sanity check for correct :custom-face formatwouter bolsterlee2017-12-201-1/+1
| |/ |/| | | | | | | | | | | | | | | | | 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
* | Guard a call to display-warning with ignoreJohn Wiegley2017-12-171-4/+5
|/ | | | Fixes https://github.com/jwiegley/use-package/issues/589
* All the second argument in use-package-defaults lists to be a functionJohn Wiegley2017-12-151-12/+25
| | | | Address the question raised in https://github.com/jwiegley/use-package/issues/591
* Minor simplification of a functionJohn Wiegley2017-12-101-5/+3
|
* bind-keys fixes related toJohn Wiegley2017-12-101-13/+12
| | | GitHub-reference: https://github.com/jwiegley/use-package/issues/482
* Fix a scoping issues with multiple occurrences of :bindJohn Wiegley2017-12-092-3/+14
| | | | Fixes https://github.com/jwiegley/use-package/issues/585
* Start building a use-package linter in use-package-lint.elJohn Wiegley2017-12-081-0/+84
|
* use-package-normalize/:disabled has the wrong number of argumentsJohn Wiegley2017-12-081-1/+1
|
* Remove several unnecessary calls to `ignore'John Wiegley2017-12-074-57/+48
|
* Changes to the way auto-deferral is indicatedJohn Wiegley2017-12-072-81/+104
| | | | | | | | | | | This change adds a new extension hook `use-package-autoloads/<KEYWORD>` for specifying exactly which autoloads a keyword should imply. This is the proper way to indicate autoloads, rather than adding to the `:commands` entry as was done before. Further, autoloading now must occur in order to cause implied deferred loading; if :bind is used with only lambda forms, for example, this will not cause deferred loading without `:defer t`.
* Introduce new customization variable `use-package-merge-key-alist'John Wiegley2017-12-071-6/+29
|
* Use cl-gentemp in another placeJohn Wiegley2017-12-061-1/+1
| | | | | This avoids "Variable unknown" errors if a byte-compiled init.elc happening to encounter an error while evaluating an :init or :config block.
* Correctly fix the problem of unreferenced symbols after compilationJohn Wiegley2017-12-061-8/+8
| | | | Fixes https://github.com/jwiegley/use-package/issues/571
* Revert "Pre-expand lexical-let, since otherwise it requires cl to be loaded"John Wiegley2017-12-071-11/+8
| | | | This reverts commit 7cc17cee8f8ae2093d98efebf429cd10e9b0b81c.