summaryrefslogtreecommitdiff
path: root/lisp/use-package
Commit message (Collapse)AuthorAgeFilesLines
...
| * hyperlink functions in Comments columnAdam Spiers2014-01-041-2/+2
| | | | | | | | | | Previously, only the functions in the Command column were hyper-linked. Also clarify the meaning of the "was" entries in the Comments column.
* | fix DRY violation by only having documentation in one placeAdam Spiers2014-01-061-227/+1
|/ | | | | | | | | | | | | | | | | | | | | The documentation in README.md was previously identical to that in the Commentary section of use-package.el, modulo the following differences: - No elisp comment ";; " prefix - Code blocks indented 4 columns not 2, as required by Markdown - Elisp symbols marked in backtick delimiters for monospace, not emacs backtick/forward tick pairs. Unfortunately due to this duplication, sometimes only one of the two files got updated, so they got out of sync. With us all being human, this is likely to continue to happen as long as the duplication exists ;-) Therefore since most users are likely to encounter README.md before the elisp, and bearing in mind that Markdown is a much more flexible format for documentation than elisp comments (richer formatting, can be exported to numerous other formats etc.), it is better to replace the docs in use-package.el with a pointer to the README.md.
* allow :mode and :interpreter to accept a stringAdam Spiers2013-12-161-5/+15
| | | | Fixes https://github.com/jwiegley/use-package/issues/72.
* use-package: use defun as lisp-indent-functionJonas Bernoulli2013-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | When `use-package' is called with only one keyword it is useful to write: (use-package foo :init (progn ... long lines ...)) instead of (use-package foo :init (progn ... *too* long lines ...)) or (use-package foo :init (progn ... long lines ...)) Even when there are multiple keywords or when one never wants to format the calls to `use-package' as in the first example the use of `defun' does not really pose a problem.
* Add a :demand directive, to override deferred loading ()John Wiegley2013-12-041-8/+11
| | | GitHub-reference: https://github.com/jwiegley/use-package/issues/65
* fboundp is a function, not a variableJohn Wiegley2013-12-041-1/+1
| | | | Fixes https://github.com/jwiegley/use-package/issues/68
* Backward compatibility with emacs-22.1Dave Abrahams2013-12-021-1/+2
| | | | This change supports the emacs that ships with MacOS X, the last version not encumbered by GPLv3.
* Default use-package-verbose to nilJohn Wiegley2013-12-021-1/+1
|
* Remove el-get supportPhilippe Vaucher2013-11-051-102/+0
|
* Add :pre-load to use-package-keywordsTing-Yu Lin2013-10-261-0/+1
| | | | | The :pre-load keyword cannot be used unless it is in `use-package-keywords' list.
* Properly enable runtime dependency for :idle stanza (issue)Phil Hudson2013-10-151-0/+1
| | | | See issue https://github.com/jwiegley/use-package/issues/60. GitHub-reference: https://github.com/jwiegley/use-package/issues/60
* remove extra comma (added by 026c46c)Noam Postavsky2013-10-141-1/+1
|
* let with-elapsed-timer return last formNoam Postavsky2013-10-121-11/+12
|
* make `with-elapsed-timer' hygienicNoam Postavsky2013-10-121-8/+9
|
* with-elapsed-timer: only check verbosity onceNoam Postavsky2013-10-121-12/+10
|
* remove after-init-hook for override-global-modeNoam Postavsky2013-10-121-5/+0
| | | | | The INIT-VALUE argument to define-minor-mode is t, so it's enabled by default.
* macroexpand not neededNoam Postavsky2013-10-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since lambda thunking replaced quoting in a76d167. To see why, observe that cases 3 and 4 disassemble to identical code. The difference between cases 1 and 2 shows why the macroexpand was needed originally. (defmacro test-quote (name-string) `(eval-after-load "foo" `(with-elapsed-timer ,(format "Configuring package %s" name-string) (message "test-quote")))) (defmacro test-expand-quote (name-string) `(eval-after-load "foo" ,(macroexpand-all `(with-elapsed-timer ,(format "Configuring package %s" name-string) (message "test-expand-quote"))))) (defmacro test-lambda (name-string) `(eval-after-load "foo" `(,(lambda () (with-elapsed-timer ,(format "Configuring package %s" name-string) (message "test-lambda")))))) (defmacro test-expand-lambda (name-string) `(eval-after-load "foo" `(,(lambda () ,(macroexpand-all `(with-elapsed-timer ,(format "Configuring package %s" name-string) (message "test-lambda"))))))) (disassemble (lambda () (test-quote "testing..."))) (disassemble (lambda () (test-expand-quote "testing..."))) (disassemble (lambda () (test-lambda "testing..."))) (disassemble (lambda () (test-expand-lambda "testing...")))
* cl not needed since flet was removed in 82903daNoam Postavsky2013-10-121-3/+0
|
* Merge pull request from phillord/first-keywordJohn Wiegley2013-10-071-0/+12
|\ | | | | | | Add a ":first" keyword for those occasions that it's necessary. GitHub-reference: https://github.com/jwiegley/use-package/issues/42
| * Changed :first to :pre-loadPhillip Lord2013-08-151-5/+6
| | | | | | | | Updated and extended documentation.
| * Add a ":first" keyword for those occasions that it's necessaryPhillip Lord2013-08-131-0/+11
| |
* | use plist-get-value for all non-sexp argsNoam Postavsky2013-09-251-4/+4
| |
* | plist-get-value treats arg as backquotedNoam Postavsky2013-09-251-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | This allows use of variables or even arbitrary expressions to construct use-package arguments: (use-package some-package :mode ,mode-spec :bind (,binding ,@more-bindings ,@(cl-loop for i from ?a to ?z collect `(,(string i) . nifty-function))))
* | Removes `plist-get-sexp`Nicolas Dudebout2013-09-251-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function was not working as advertised. Then `funcall` was evaluated too early and all the benefits of late evaluation for autoloads was lost. Furthermore, this function was not really needed in the first place: ``` (use-package foo :config my-foo-function) ``` can easily be replaced by the following: ``` (use-package foo :config (my-foo-function)) ```
* | Enables using variables and functions as argumentsNicolas Dudebout2013-09-241-10/+22
| | | | | | | | | | | | | | | | | | This change an extra level on indirection for two cases: + when an association or an alist is required, it is possible to pass a variable containing an association or an alist + when a sexp to be evaluated is required, it is possible to pass a function instead
* | pass name (not name-string) to eval-after-loadNoam Postavsky2013-09-161-1/+1
| | | | | | | | | | | | Fixes https://github.com/jwiegley/use-package/issues/52: the :config block would be triggered when loading a config file with the same name as the package and again when loading the package itself.
* | Fix highlight use-package for Emacs snapshotTing-Yu Lin2013-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | The commit 57f80d4 fixed the highlight by following the regexp as for require. However in Emacs truck, it only highlights first part of the package name. This change follows the regexp for require on emacs truck. See line 2327 on font-lock.el in the following patch. http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/111821
* | Merge pull request from npostavs/hilite-reduxJohn Wiegley2013-09-041-2/+2
|\ \ | | | | | | | | | highlight use-package before typing package name GitHub-reference: https://github.com/jwiegley/use-package/issues/47
| * | highlight use-package before typing package nameNoam Postavsky2013-09-031-2/+2
| | | | | | | | | | | | | | | This follow the same pattern as the highlighting for provide and require from `lisp-font-lock-keywords-2' in font-lock.el
* | | Improve (describe-personal-keybindings) outputTing-Yu Lin2013-09-041-13/+10
|/ / | | | | | | | | | | | | | | Create *Personal Keybindings* by with-output-to-temp-buffer. It redirects standard output to the buffer and display it in help mode. So we can get help mode keybindings such as "q" for free. Quote the command-desc output so that it is made into a hyperlink.
* | also check `byte-compile-current-file' for compile time loads, fixes issueNoam Postavsky2013-08-151-4/+5
| | | | | | | | | | `eval-when-compile' is really `eval-when-macroexpand' which includes loading from source GitHub-reference: https://github.com/jwiegley/use-package/issues/44
* | use lambda around deferred :config forms to compile them, fixes issueNoam Postavsky2013-08-131-6/+6
| | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/30
* | use `eval-when-compile' for loading package at compile time, fixes issueNoam Postavsky2013-08-131-1/+1
| | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/29
* | refine use-package highlighting regexpNoam Postavsky2013-08-111-1/+1
| |
* | Fix initial line to satisfy package.elSteve Purcell2013-07-281-1/+1
| |
* | Validate keywords. Error if any keyword is unrecognizedPhil Hudson2013-07-031-0/+39
| | | | | | | | | | Conflicts: use-package.el
* | Added documentation to use-package macroPhillip Lord2013-06-261-1/+2
| |
* | Documentation added for :ensure keywordPhillip Lord2013-06-261-0/+11
|/
* package header should, hold, sold be the full filename + extDonald Curtis2013-05-151-1/+1
| | | | this fixes a bug in using `(package-buffer-info)`
* Merge pull request from tarsius/font-lockJohn Wiegley2013-04-271-0/+7
|\ | | | | | | fontify use-package form GitHub-reference: https://github.com/jwiegley/use-package/issues/25
| * fontify use-package formJonas Bernoulli2013-04-271-0/+7
| |
* | add dots; cleanup whitespaceJonas Bernoulli2013-04-271-11/+8
| |
* | quiet byte-compiler; ensure package.el is loadedJonas Bernoulli2013-04-271-0/+4
| |
* | don't use obsolete fletJonas Bernoulli2013-04-271-29/+32
| | | | | | | | | | Unfortunately there isn't a proper dynamically scoped replacement, so we have to resort to using funcall.
* | enforce use of spaces for indentationJonas Bernoulli2013-04-272-4/+8
|/
* Add Package-Requires header for ELPA installationsSteve Purcell2013-04-231-0/+1
|
* Merge pull request from npostavs/easy-diminishJohn Wiegley2013-04-161-4/+4
|\ | | | | | | needed extra layer of nesting for diminish calls GitHub-reference: https://github.com/jwiegley/use-package/issues/21
| * needed extra layer of nesting for diminish callsNoam Postavsky2013-04-161-4/+4
| |
* | Merge pull request from npostavs/easy-diminishJohn Wiegley2013-04-141-11/+17
|\| | | | | | | let :diminish "string" guess correct mode symbol GitHub-reference: https://github.com/jwiegley/use-package/issues/20
| * let :diminish "string" guess correct mode symbolNoam Postavsky2013-04-141-11/+17
| |