]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years agouse plist-get-value for all non-sexp args
Noam Postavsky [Thu, 26 Sep 2013 02:29:59 +0000 (22:29 -0400)]
use plist-get-value for all non-sexp args

10 years agoplist-get-value treats arg as backquoted
Noam Postavsky [Thu, 26 Sep 2013 02:24:45 +0000 (22:24 -0400)]
plist-get-value treats arg as backquoted

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))))

10 years agoMerge pull request from dudebout/fixes-
John Wiegley [Wed, 25 Sep 2013 18:11:47 +0000 (11:11 -0700)]
Merge pull request from dudebout/fixes-

Removes `plist-get-sexp`
GitHub-reference: https://github.com/jwiegley/use-package/issues/55
GitHub-reference: https://github.com/jwiegley/use-package/issues/54

10 years agoRemoves `plist-get-sexp`
Nicolas Dudebout [Wed, 25 Sep 2013 18:02:29 +0000 (14:02 -0400)]
Removes `plist-get-sexp`

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))
```

11 years agoMerge pull request from dudebout/variable-and-function-support
John Wiegley [Tue, 24 Sep 2013 18:32:31 +0000 (11:32 -0700)]
Merge pull request from dudebout/variable-and-function-support

Enables using variables and functions as arguments
GitHub-reference: https://github.com/jwiegley/use-package/issues/54

11 years agoEnables using variables and functions as arguments
Nicolas Dudebout [Tue, 17 Sep 2013 13:58:57 +0000 (09:58 -0400)]
Enables using variables and functions as arguments

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

11 years agoMerge pull request from npostavs/eval-after-name
John Wiegley [Tue, 17 Sep 2013 07:22:16 +0000 (00:22 -0700)]
Merge pull request from npostavs/eval-after-name

pass name (not name-string) to eval-after-load
GitHub-reference: https://github.com/jwiegley/use-package/issues/53

11 years agopass name (not name-string) to eval-after-load
Noam Postavsky [Mon, 16 Sep 2013 17:59:16 +0000 (13:59 -0400)]
pass name (not name-string) to eval-after-load

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.

11 years agoMerge pull request from aethanyc/fix-highlight
John Wiegley [Sun, 15 Sep 2013 20:12:45 +0000 (13:12 -0700)]
Merge pull request from aethanyc/fix-highlight

Fix highlight use-package for Emacs snapshot
GitHub-reference: https://github.com/jwiegley/use-package/issues/49

11 years agoFix highlight use-package for Emacs snapshot
Ting-Yu Lin [Fri, 13 Sep 2013 13:17:09 +0000 (21:17 +0800)]
Fix highlight use-package for Emacs snapshot

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

11 years agoMerge pull request from npostavs/hilite-redux
John Wiegley [Wed, 4 Sep 2013 20:27:43 +0000 (13:27 -0700)]
Merge pull request from npostavs/hilite-redux

highlight use-package before typing package name
GitHub-reference: https://github.com/jwiegley/use-package/issues/47

11 years agoMerge pull request from aethanyc/improve-output-buffer
John Wiegley [Wed, 4 Sep 2013 20:27:25 +0000 (13:27 -0700)]
Merge pull request from aethanyc/improve-output-buffer

Improve (describe-personal-keybindings) output
GitHub-reference: https://github.com/jwiegley/use-package/issues/48

11 years agoImprove (describe-personal-keybindings) output
Ting-Yu Lin [Wed, 4 Sep 2013 14:40:55 +0000 (22:40 +0800)]
Improve (describe-personal-keybindings) output

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.

11 years agohighlight use-package before typing package name
Noam Postavsky [Wed, 14 Aug 2013 03:33:18 +0000 (23:33 -0400)]
highlight use-package before typing package name

This follow the same pattern as the highlighting for provide and require
from `lisp-font-lock-keywords-2' in font-lock.el

11 years agoMerge pull request from npostavs/master
John Wiegley [Fri, 16 Aug 2013 06:07:09 +0000 (23:07 -0700)]
Merge pull request from npostavs/master

also check `byte-compile-current-file' for compile time loads, fixes issue https://github.com/jwiegley/use-package/issues/44
GitHub-reference: https://github.com/jwiegley/use-package/issues/45

11 years agoalso check `byte-compile-current-file' for compile time loads, fixes issue
Noam Postavsky [Fri, 16 Aug 2013 01:35:38 +0000 (21:35 -0400)]
also check `byte-compile-current-file' for compile time loads, fixes issue

`eval-when-compile' is really `eval-when-macroexpand' which includes
loading from source
GitHub-reference: https://github.com/jwiegley/use-package/issues/44

11 years agoMerge pull request from npostavs/master
John Wiegley [Wed, 14 Aug 2013 01:54:23 +0000 (18:54 -0700)]
Merge pull request from npostavs/master

Byte compilation, fixes for https://github.com/jwiegley/use-package/issues/29 and https://github.com/jwiegley/use-package/issues/30
GitHub-reference: https://github.com/jwiegley/use-package/issues/43

11 years agouse lambda around deferred :config forms to compile them, fixes issue
Noam Postavsky [Tue, 13 Aug 2013 23:25:26 +0000 (19:25 -0400)]
use lambda around deferred :config forms to compile them, fixes issue

GitHub-reference: https://github.com/jwiegley/use-package/issues/30

11 years agouse `eval-when-compile' for loading package at compile time, fixes issue
Noam Postavsky [Tue, 13 Aug 2013 23:13:16 +0000 (19:13 -0400)]
use `eval-when-compile' for loading package at compile time, fixes issue

GitHub-reference: https://github.com/jwiegley/use-package/issues/29

11 years agoMerge pull request from npostavs/master
John Wiegley [Mon, 12 Aug 2013 04:22:57 +0000 (21:22 -0700)]
Merge pull request from npostavs/master

refine use-package highlighting regexp
GitHub-reference: https://github.com/jwiegley/use-package/issues/41

11 years agorefine use-package highlighting regexp
Noam Postavsky [Sun, 11 Aug 2013 20:05:06 +0000 (16:05 -0400)]
refine use-package highlighting regexp

11 years agoMerge pull request from purcell/patch-2
John Wiegley [Sun, 28 Jul 2013 22:04:20 +0000 (15:04 -0700)]
Merge pull request from purcell/patch-2

Fix initial line to satisfy package.el
GitHub-reference: https://github.com/jwiegley/use-package/issues/40

11 years agoFix initial line to satisfy package.el
Steve Purcell [Sun, 28 Jul 2013 08:45:06 +0000 (09:45 +0100)]
Fix initial line to satisfy package.el

11 years agoValidate keywords. Error if any keyword is unrecognized
Phil Hudson [Fri, 14 Jun 2013 09:53:49 +0000 (10:53 +0100)]
Validate keywords. Error if any keyword is unrecognized

Conflicts:
use-package.el

11 years agoMerge pull request from phillord/ensure-doc
John Wiegley [Wed, 26 Jun 2013 17:33:46 +0000 (10:33 -0700)]
Merge pull request from phillord/ensure-doc

Ensure doc
GitHub-reference: https://github.com/jwiegley/use-package/issues/37

11 years agoAdded documentation to use-package macro
Phillip Lord [Wed, 26 Jun 2013 11:12:25 +0000 (12:12 +0100)]
Added documentation to use-package macro

11 years agoDocumentation added for :ensure keyword
Phillip Lord [Wed, 26 Jun 2013 09:28:35 +0000 (10:28 +0100)]
Documentation added for :ensure keyword

11 years agoMerge pull request from milkypostman/master
John Wiegley [Wed, 15 May 2013 21:29:20 +0000 (14:29 -0700)]
Merge pull request from milkypostman/master

package header should be the full filename + ext
GitHub-reference: https://github.com/jwiegley/use-package/issues/28

11 years agopackage header should, hold, sold be the full filename + ext
Donald Curtis [Wed, 15 May 2013 14:01:37 +0000 (09:01 -0500)]
package header should, hold, sold be the full filename + ext

this fixes a bug in using `(package-buffer-info)`

11 years agoMerge pull request from tarsius/font-lock
John Wiegley [Sat, 27 Apr 2013 22:09:55 +0000 (15:09 -0700)]
Merge pull request from tarsius/font-lock

fontify use-package form
GitHub-reference: https://github.com/jwiegley/use-package/issues/25

11 years agoMerge pull request from tarsius/master
John Wiegley [Sat, 27 Apr 2013 22:09:39 +0000 (15:09 -0700)]
Merge pull request from tarsius/master

some small cleanups
GitHub-reference: https://github.com/jwiegley/use-package/issues/24

11 years agofontify use-package form
Jonas Bernoulli [Sat, 27 Apr 2013 15:42:36 +0000 (17:42 +0200)]
fontify use-package form

11 years agoadd dots; cleanup whitespace
Jonas Bernoulli [Sat, 27 Apr 2013 15:11:16 +0000 (17:11 +0200)]
add dots; cleanup whitespace

11 years agoquiet byte-compiler; ensure package.el is loaded
Jonas Bernoulli [Sat, 27 Apr 2013 15:09:52 +0000 (17:09 +0200)]
quiet byte-compiler; ensure package.el is loaded

11 years agodon't use obsolete flet
Jonas Bernoulli [Sat, 27 Apr 2013 15:09:12 +0000 (17:09 +0200)]
don't use obsolete flet

Unfortunately there isn't a proper dynamically scoped
replacement, so we have to resort to using funcall.

11 years agoenforce use of spaces for indentation
Jonas Bernoulli [Sat, 27 Apr 2013 15:04:47 +0000 (17:04 +0200)]
enforce use of spaces for indentation

11 years agoMerge pull request from purcell/patch-1
John Wiegley [Tue, 23 Apr 2013 16:06:47 +0000 (09:06 -0700)]
Merge pull request from purcell/patch-1

Add Package-Requires header for ELPA installations
GitHub-reference: https://github.com/jwiegley/use-package/issues/22

11 years agoAdd Package-Requires header for ELPA installations
Steve Purcell [Tue, 23 Apr 2013 09:25:10 +0000 (11:25 +0200)]
Add Package-Requires header for ELPA installations

11 years agoMerge pull request from npostavs/easy-diminish
John Wiegley [Tue, 16 Apr 2013 22:28:37 +0000 (15:28 -0700)]
Merge pull request from npostavs/easy-diminish

needed extra layer of nesting for diminish calls
GitHub-reference: https://github.com/jwiegley/use-package/issues/21

11 years agoneeded extra layer of nesting for diminish calls
Noam Postavsky [Tue, 16 Apr 2013 15:29:32 +0000 (11:29 -0400)]
needed extra layer of nesting for diminish calls

11 years agoMerge pull request from npostavs/easy-diminish
John Wiegley [Sun, 14 Apr 2013 21:03:46 +0000 (14:03 -0700)]
Merge pull request from npostavs/easy-diminish

let :diminish "string" guess correct mode symbol
GitHub-reference: https://github.com/jwiegley/use-package/issues/20

11 years agoMerge pull request from npostavs/bind-override
John Wiegley [Sun, 14 Apr 2013 20:45:23 +0000 (13:45 -0700)]
Merge pull request from npostavs/bind-override

let bind-key* override minor modes with emulation-mode-map-alists
GitHub-reference: https://github.com/jwiegley/use-package/issues/19

11 years agolet :diminish "string" guess correct mode symbol
Noam Postavsky [Sun, 14 Apr 2013 19:01:37 +0000 (15:01 -0400)]
let :diminish "string" guess correct mode symbol

11 years agolet bind-key* override minor modes with emulation-mode-map-alists
Noam Postavsky [Sat, 13 Apr 2013 20:09:27 +0000 (16:09 -0400)]
let bind-key* override minor modes with emulation-mode-map-alists

11 years agoMerge pull request from PhilHudson/master
John Wiegley [Sat, 23 Mar 2013 12:08:33 +0000 (05:08 -0700)]
Merge pull request from PhilHudson/master

Macro expansion redux
GitHub-reference: https://github.com/jwiegley/use-package/issues/17

11 years agoRuntime client code independence redux
Phil Hudson [Sat, 23 Mar 2013 11:31:15 +0000 (11:31 +0000)]
Runtime client code independence redux

Tweak to previous fix for expanding macros correctly at code-planting time. Specifically, eval `use-package-minimum-reported-time' at code-planting time not at runtime (which would require use-package.el to be loaded first).

11 years agoCorrected a typo
John Wiegley [Mon, 18 Feb 2013 23:52:58 +0000 (17:52 -0600)]
Corrected a typo

11 years agoMerge pull request from phillord/master
John Wiegley [Tue, 12 Feb 2013 17:51:00 +0000 (09:51 -0800)]
Merge pull request from phillord/master

Support for idle loading of packages
GitHub-reference: https://github.com/jwiegley/use-package/issues/16

11 years agoMerge branch 'master' of https://github.com/jwiegley/use-package
Phillip Lord [Tue, 12 Feb 2013 10:22:47 +0000 (10:22 +0000)]
Merge branch 'master' of https://github.com/jwiegley/use-package

11 years agoidle initiation of packages
Phillip Lord [Tue, 12 Feb 2013 10:22:06 +0000 (10:22 +0000)]
idle initiation of packages

A new feature which adds support for idle startup and loading of packages.

11 years agoMerge pull request from phillord/master
John Wiegley [Wed, 6 Feb 2013 06:13:29 +0000 (22:13 -0800)]
Merge pull request from phillord/master

Load time display option.
GitHub-reference: https://github.com/jwiegley/use-package/issues/15

11 years agoAdded minimum load time display option
Phillip Lord [Tue, 5 Feb 2013 21:46:02 +0000 (21:46 +0000)]
Added minimum load time display option

Makes the minimum load time before use-package displays
a message a customizable option.

11 years agoMerge pull request from bdd/master
John Wiegley [Mon, 28 Jan 2013 15:57:47 +0000 (07:57 -0800)]
Merge pull request from bdd/master

Remove trailing whitespace
GitHub-reference: https://github.com/jwiegley/use-package/issues/14

11 years agoCleanup trailing whitespace
Berk D. Demir [Mon, 28 Jan 2013 08:38:39 +0000 (00:38 -0800)]
Cleanup trailing whitespace

Just `M-x delete-trailing-whitespace' on use-package.el

11 years agoMerge pull request from PhilHudson/macroexpand
John Wiegley [Thu, 24 Jan 2013 03:34:03 +0000 (19:34 -0800)]
Merge pull request from PhilHudson/macroexpand

Macroexpand quoted eval-after-load block early
GitHub-reference: https://github.com/jwiegley/use-package/issues/13

11 years agoMacroexpand quoted eval-after-load block early
Phil Hudson [Wed, 23 Jan 2013 20:33:15 +0000 (20:33 +0000)]
Macroexpand quoted eval-after-load block early

The main `use-package' macro incorrectly planted code containing a call to the `with-elapsed-timer' macro in a quoted block to be run by `eval-after-load'. If package use-package was not loaded at runtime, the block would error saying correctly that `with-elapsed-timer' is undefined. This mod correctly macroexpands the block at code generation time.

11 years agoMerge pull request from phillord/master
John Wiegley [Fri, 18 Jan 2013 23:25:55 +0000 (15:25 -0800)]
Merge pull request from phillord/master

Better support for ELPA.
GitHub-reference: https://github.com/jwiegley/use-package/issues/11

11 years agoSupport packages where autoload and elpa name are different
Phillip Lord [Fri, 18 Jan 2013 10:44:17 +0000 (10:44 +0000)]
Support packages where autoload and elpa name are different

Some packages such as ECB already provide an autoload file,
so it is this that use-package needs to require. However,
the ELPA name is ecb. This commit allows ensure to take an
argument (other than t).

11 years agoMerge pull request from phillord/master
John Wiegley [Thu, 17 Jan 2013 22:30:50 +0000 (14:30 -0800)]
Merge pull request from phillord/master

Inline documentation
GitHub-reference: https://github.com/jwiegley/use-package/issues/10

11 years agoDocumentation for the use-package macro
Phillip Lord [Thu, 17 Jan 2013 21:57:39 +0000 (21:57 +0000)]
Documentation for the use-package macro

11 years agoReverting "Documentation for the use-package macro."
Phillip Lord [Thu, 17 Jan 2013 21:55:53 +0000 (21:55 +0000)]
Reverting "Documentation for the use-package macro."

Revert "Documentation for the use-package macro."

This reverts commit abc0ebc92dc1cf9ef9adfe133d0b30bf7382b65c.

11 years agoDocumentation for the use-package macro
Phillip Lord [Thu, 17 Jan 2013 21:22:57 +0000 (21:22 +0000)]
Documentation for the use-package macro

11 years agoMerge pull request from phillord/master
John Wiegley [Sat, 12 Jan 2013 21:19:28 +0000 (13:19 -0800)]
Merge pull request from phillord/master

ELPA support
GitHub-reference: https://github.com/jwiegley/use-package/issues/9

11 years agoELPA package support
Phillip Lord [Mon, 31 Dec 2012 16:58:45 +0000 (17:58 +0100)]
ELPA package support

11 years agoMerge pull request from PhilHudson/master
John Wiegley [Wed, 21 Nov 2012 01:54:14 +0000 (17:54 -0800)]
Merge pull request from PhilHudson/master

Support optional diminish replacement string parameter using conses
GitHub-reference: https://github.com/jwiegley/use-package/issues/4

11 years agoSupport diminishing to a replacement string as well as to nothing
Phil Hudson [Wed, 21 Nov 2012 00:46:17 +0000 (00:46 +0000)]
Support diminishing to a replacement string as well as to nothing

`diminish' accepts an optional second argument, a replacement string. This change supports all the following arguments to ':diminish':

* package
* (package . "pkg")
* (package1 package2)
* ((package1 . "p1") (package2 . "p2))

The second and fourth formats are new with this change.

12 years agoUse-package now accepts function as argument
John Wiegley [Mon, 30 Jul 2012 22:36:13 +0000 (17:36 -0500)]
Use-package now accepts function as argument

12 years agoOnly use user-site-lisp-directory if defined
John Wiegley [Wed, 11 Jul 2012 06:24:30 +0000 (01:24 -0500)]
Only use user-site-lisp-directory if defined

12 years agoCorrect return value from with-elapsed-timer
John Wiegley [Tue, 26 Jun 2012 11:59:54 +0000 (06:59 -0500)]
Correct return value from with-elapsed-timer

12 years agoMore updates to support el-get
John Wiegley [Fri, 22 Jun 2012 10:02:38 +0000 (05:02 -0500)]
More updates to support el-get

12 years agoByte-compilation related fix
John Wiegley [Fri, 22 Jun 2012 06:32:59 +0000 (01:32 -0500)]
Byte-compilation related fix

12 years agoAdded :pre-init
John Wiegley [Thu, 21 Jun 2012 04:03:27 +0000 (23:03 -0500)]
Added :pre-init

12 years agoEstablish autoloads after :init
John Wiegley [Thu, 21 Jun 2012 02:35:50 +0000 (21:35 -0500)]
Establish autoloads after :init

12 years agoAdded :mode and :interpreter keywords
John Wiegley [Mon, 18 Jun 2012 01:25:58 +0000 (20:25 -0500)]
Added :mode and :interpreter keywords

12 years agoAdd a note about how to use :load-path
John Wiegley [Sun, 17 Jun 2012 21:47:01 +0000 (16:47 -0500)]
Add a note about how to use :load-path

12 years agoIf :load-path is absolute, don't expand it
John Wiegley [Sun, 17 Jun 2012 21:44:49 +0000 (16:44 -0500)]
If :load-path is absolute, don't expand it

12 years agoDie typos, die
John Wiegley [Sun, 17 Jun 2012 14:43:33 +0000 (09:43 -0500)]
Die typos, die

12 years agoFixed a typo
John Wiegley [Sun, 17 Jun 2012 14:41:34 +0000 (09:41 -0500)]
Fixed a typo

12 years agoMinor reformatting
John Wiegley [Sun, 17 Jun 2012 14:38:11 +0000 (09:38 -0500)]
Minor reformatting

12 years agoMinor grammatical nit
John Wiegley [Sun, 17 Jun 2012 14:18:47 +0000 (09:18 -0500)]
Minor grammatical nit

12 years agoIntegrated support for working with el-get
John Wiegley [Sun, 17 Jun 2012 14:18:12 +0000 (09:18 -0500)]
Integrated support for working with el-get

12 years agoMake use-package-verbose customizable
John Wiegley [Sun, 17 Jun 2012 10:52:59 +0000 (05:52 -0500)]
Make use-package-verbose customizable

12 years agoHave loading timer include time to require
John Wiegley [Sun, 17 Jun 2012 10:12:13 +0000 (05:12 -0500)]
Have loading timer include time to require

12 years agoFixed a typo in bind-key.el
John Wiegley [Sun, 17 Jun 2012 09:50:07 +0000 (04:50 -0500)]
Fixed a typo in bind-key.el

12 years agoREADME and other updates
John Wiegley [Sun, 17 Jun 2012 09:40:25 +0000 (04:40 -0500)]
README and other updates