diff options
| author | Matthew Avant <root@mavant.com> | 2021-07-22 22:16:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-22 19:16:42 -0700 |
| commit | 52e0a140a8414699e2ed58000300f526995237f5 (patch) | |
| tree | ddf20313e806bf9d40bbffd80526a9571a7aef70 | |
| parent | f865c165dac606187a66b2b25a57d5099b452120 (diff) | |
Update apheleia-formatters type spec to avoid customize-variable error (#40)
* Update apheleia-formatters type spec to avoid customize-variable error
Declare all of the permitted special symbols used in apheleia-formatters commands.
Without this, 'customize-variable never allows settting the value of apheleia-formatters, instead reporting an error about a mismatch between the default value and the type.
* Update CHANGELOG.md
* Break long line
* Update CHANGELOG.md
* Update CHANGELOG.md
* Create CHANGELOG.md
Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | apheleia.el | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4df9ea9..09a0f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog]. * Apheleia no longer triggers `after-set-visited-file-name-hook`, which reduces conflicts with various modes. For example, `lsp-mode` will no longer trigger a reconnect every time you save. +* Fix inconsistent `:type` spec preventing use of `customize-variable` + on `apheleia-formatters`. [#30]: https://github.com/raxod502/apheleia/issues/30 [#32]: https://github.com/raxod502/apheleia/pull/32 diff --git a/apheleia.el b/apheleia.el index f93ebf6..9ec573c 100644 --- a/apheleia.el +++ b/apheleia.el @@ -475,6 +475,9 @@ commands, lists of strings and symbols, in the format of (repeat (choice (string :tag "Argument") + (const :tag "Look for command in node_modules/.bin" npx) + (const :tag "Name of file being formatted" filepath) + (const :tag "Name of real file used for input" file) (const :tag "Name of temporary file used for input" input) (const :tag "Name of temporary file used for output" output))))) |
