[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/reformatter ab28d6480c 12/81: Support :group keyword
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/reformatter ab28d6480c 12/81: Support :group keyword |
Date: |
Tue, 5 Sep 2023 04:03:33 -0400 (EDT) |
branch: elpa/reformatter
commit ab28d6480cff9489c2af54c3f88155a152b63433
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Support :group keyword
---
reformatter.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/reformatter.el b/reformatter.el
index 2464c22511..6ec42a459d 100644
--- a/reformatter.el
+++ b/reformatter.el
@@ -73,7 +73,7 @@
(require 'ansi-color)
;;;###autoload
-(cl-defmacro reformatter-define (name &key program args (mode t) lighter
keymap)
+(cl-defmacro reformatter-define (name &key program args (mode t) lighter
keymap group)
"Define a reformatter command with NAME.
When called, the reformatter will use PROGRAM and any ARGS to
@@ -102,6 +102,11 @@ The macro accepts the following keyword arguments:
reformatter command from `before-save-hook' when enabled.
Default is t.
+:group
+
+ If provided, this is the custom group used for any generated
+ modes or custom variables.
+
:lighter
If provided, this is a mode lighter string which will be used
@@ -127,6 +132,7 @@ The macro accepts the following keyword arguments:
`(progn
(defcustom ,lighter-name ,lighter
,(format "Mode lighter for `%s'." on-save-mode-name)
+ :group ,group
:type 'string)
(define-minor-mode ,on-save-mode-name
,(format "When enabled, call `%s' when this buffer is
saved." name)
@@ -134,6 +140,7 @@ The macro accepts the following keyword arguments:
:global nil
:lighter ,lighter-name
:keymap ,keymap
+ :group ,group
(if ,on-save-mode-name
(add-hook 'before-save-hook ',name nil t)
(remove-hook 'before-save-hook ',name t))))))))
- [nongnu] branch elpa/reformatter created (now 6c4f35dd2b), ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter ab28d6480c 12/81: Support :group keyword,
ELPA Syncer <=
- [nongnu] elpa/reformatter 8cffcf914b 11/81: Clarify use of :lighter value, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 7a1592a52c 37/81: Update README.md, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter cb9a593854 61/81: Rename repo, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter e02a9ea942 63/81: Merge pull request #31 from wyuenho/patch-1, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter cc2bb75f21 22/81: Add missing colon in docstring, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter b29fdd346d 35/81: Add note about brokenness of replace-buffer-contents, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter b44ee754b7 29/81: Fix homepage link, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 58943b47b3 26/81: Start an FAQ section in the README, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 885a7f5547 02/81: Mark up code as elisp, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 3f081e4cd2 14/81: Provide more setup hints in the -on-save-mode docstring, ELPA Syncer, 2023/09/05