[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/setup a090d3b 02/24: Add :advise macro to wrap advice-a
From: |
Stefan Monnier |
Subject: |
[elpa] externals/setup a090d3b 02/24: Add :advise macro to wrap advice-add |
Date: |
Thu, 25 Mar 2021 13:42:34 -0400 (EDT) |
branch: externals/setup
commit a090d3b6708aa01e1093ff665dcda664e9602123
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>
Add :advise macro to wrap advice-add
---
setup.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/setup.el b/setup.el
index e8ddaec..d158bd3 100644
--- a/setup.el
+++ b/setup.el
@@ -374,6 +374,15 @@ form (prepend VAR), VAL is prepended to VAR."
:debug '(symbolp form)
:repeatable t)
+(setup-define :advise
+ (lambda (symbol where function)
+ `(advice-add ,symbol ,where ,function))
+ :documentation "Add a piece of advice on a function.
+See `advice-add' for more details."
+ :debug '(sexp sexp function-form)
+ :repeatable t
+ :after-loaded t)
+
(setup-define :also-load
(lambda (feature)
`(require ',feature))
- [elpa] externals/setup updated (8712651 -> 7a78f66), Stefan Monnier, 2021/03/25
- [elpa] externals/setup 672876d 03/24: Reorder setup-define options consistently., Stefan Monnier, 2021/03/25
- [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 <=
- [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
- [elpa] externals/setup 844b6bc 15/24: Removed unnecessary unquote in :unbind, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 8f586c3 16/24: Fix hide-mode handling for the first element in minor-mode-alist, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 58cb897 09/24: Remove empty lines in docstrings, Stefan Monnier, 2021/03/25