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>
This commit is contained in:
Matthew Avant 2021-07-22 22:16:42 -04:00 committed by GitHub
parent f865c165da
commit 52e0a140a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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)))))