[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/setup 672876d 03/24: Reorder setup-define options consi
From: |
Stefan Monnier |
Subject: |
[elpa] externals/setup 672876d 03/24: Reorder setup-define options consistently. |
Date: |
Thu, 25 Mar 2021 13:42:34 -0400 (EDT) |
branch: externals/setup
commit 672876dd7c19fec450a6b6e2c735e3391c4b0279
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>
Reorder setup-define options consistently.
The rule is :documentation before everything else, and the remaining
options in alphabetical order.
---
setup.el | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/setup.el b/setup.el
index d158bd3..65c1037 100644
--- a/setup.el
+++ b/setup.el
@@ -240,15 +240,15 @@ If not given, it is assumed nothing is evaluated."
`(unless (package-installed-p ',package)
(package-install ',package)))
:documentation "Install PACKAGE if it hasn't been installed yet."
- :shorthand #'cadr
- :repeatable t)
+ :repeatable t
+ :shorthand #'cadr)
(setup-define :require
(lambda (feature)
`(require ',feature))
:documentation "Eagerly require FEATURE."
- :shorthand #'cadr
- :repeatable t)
+ :repeatable t
+ :shorthand #'cadr)
(setup-define :global
(lambda (key command)
@@ -258,7 +258,7 @@ If not given, it is assumed nothing is evaluated."
(key))
#',command))
:documentation "Globally bind KEY to COMMAND."
- :debug '(form [&or [symbolp sexp] form])
+ :debug '(form function-form)
:repeatable t)
(setup-define :bind
@@ -270,7 +270,7 @@ If not given, it is assumed nothing is evaluated."
#',command))
:documentation "Bind KEY to COMMAND in current map."
:after-loaded t
- :debug '(form [&or [symbolp sexp] form])
+ :debug '(form function-form)
:repeatable t)
(setup-define :unbind
@@ -297,6 +297,7 @@ If not given, it is assumed nothing is evaluated."
#',command)))
:documentation "Unbind the current key for COMMAND, and bind it to KEY."
:after-loaded t
+ :debug '(form function-form)
:repeatable t)
(setup-define :hook
@@ -379,16 +380,16 @@ form (prepend VAR), VAL is prepended to VAR."
`(advice-add ,symbol ,where ,function))
:documentation "Add a piece of advice on a function.
See `advice-add' for more details."
+ :after-loaded t
:debug '(sexp sexp function-form)
- :repeatable t
- :after-loaded t)
+ :repeatable t)
(setup-define :also-load
(lambda (feature)
`(require ',feature))
:documentation "Load FEATURE with the current body."
- :repeatable t
- :after-loaded t)
+ :after-loaded t
+ :repeatable t)
(setup-define :needs
(lambda (executable)
- [elpa] externals/setup updated (8712651 -> 7a78f66), Stefan Monnier, 2021/03/25
- [elpa] externals/setup 672876d 03/24: Reorder setup-define options consistently.,
Stefan Monnier <=
- [elpa] externals/setup d0262df 06/24: Reindent example in Commentary section, Stefan Monnier, 2021/03/25
- [elpa] externals/setup cb8085e 01/24: Remove debug specification for :hook, Stefan Monnier, 2021/03/25
- [elpa] externals/setup a090d3b 02/24: Add :advise macro to wrap advice-add, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 5dfdfb7 04/24: Remove setup-edebug-specifications declaration, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 4c1ca62 05/24: Make explicit that setup-macros is modified by setup-define., Stefan Monnier, 2021/03/25
- [elpa] externals/setup f3e1b0f 10/24: Link to repository, Stefan Monnier, 2021/03/25
- [elpa] externals/setup d1a55e7 07/24: Simplify setup docstring, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 483c938 08/24: Mention that :when-loaded is bad style, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 1893abc 13/24: Document :shorthand and extractors, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 2e18255 23/24: Always push cons as name onto body, Stefan Monnier, 2021/03/25