[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/reformatter 2c85cd76e5 03/81: Always output :keymap and :l
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/reformatter 2c85cd76e5 03/81: Always output :keymap and :lighter minor mode arguments |
Date: |
Tue, 5 Sep 2023 04:03:32 -0400 (EDT) |
branch: elpa/reformatter
commit 2c85cd76e53c90e27075a22654c33fdfc85368da
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Always output :keymap and :lighter minor mode arguments
---
reformatter.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/reformatter.el b/reformatter.el
index 77c31938ee..796ff01fae 100644
--- a/reformatter.el
+++ b/reformatter.el
@@ -109,13 +109,13 @@ The macro accepts the following keyword arguments:
(cl-assert program)
(let ((minor-mode-form
(when mode
- (let ((on-save-mode-name (intern-soft (format "%s-on-save-mode"
name))))
+ (let ((on-save-mode-name (intern (format "%s-on-save-mode" name))))
`(define-minor-mode ,on-save-mode-name
,(format "When enabled, call `%s' when this buffer is saved."
name)
nil
:global nil
- ,@(when keymap (list :keymap keymap))
- ,@(when lighter (list :lighter lighter))
+ :lighter ,lighter
+ :keymap ,keymap
(if ,on-save-mode-name
(add-hook 'before-save-hook ',name nil t)
(remove-hook 'before-save-hook ',name t)))))))
- [nongnu] elpa/reformatter 1af1371f71 78/81: chore(deps): bump actions/checkout from 2 to 4, (continued)
- [nongnu] elpa/reformatter 1af1371f71 78/81: chore(deps): bump actions/checkout from 2 to 4, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 7cf8b5d71e 08/81: Note about absence of "gensym", ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 48bcae5856 06/81: Doc fixes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 0aea1debd1 05/81: package-lint fixes, primarily renaming define-formatter, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 664fa96fd0 24/81: Add/update comments, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter d0d58c4eef 01/81: Initial commit, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 9c6c239371 04/81: Generate a separate custom variable for the mode lighter, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 9478d6ca2d 19/81: Fix -on-save-mode docstring, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 466740b40a 17/81: Link to example of using reformatter in a user config, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter c684c0b30f 10/81: Add links to usages in the wild, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 2c85cd76e5 03/81: Always output :keymap and :lighter minor mode arguments,
ELPA Syncer <=
- [nongnu] elpa/reformatter 6484d45a87 07/81: Only support string mode lighters, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 123d192fb0 16/81: Use https for sanityinc.com link, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 2b2785557a 15/81: Clearer documentation, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter b2963f5100 23/81: Narrow to region when replacing contents with reformatter output, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 78eb8bc98a 09/81: Doc clarifications, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 0da7241ca2 34/81: Actually check for broken replace-buffer-contents, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 2fd158102f 54/81: Merge pull request #27 from purcell/files-in-place, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 6c5e7f64c5 41/81: Never use `replace-buffer-contents', ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 7219a0804c 48/81: Support for formatters which succeed with non-zero exit codes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/reformatter 00413b21ec 28/81: Add reminder to use a `defgroup` form, ELPA Syncer, 2023/09/05