Radon Rosborough
92c0fce6b4
[ #16 ] Address package-lint issue
2021-09-26 12:16:04 -07:00
PrimaryCanary
8e022c67fe
[DRAFT] More formatters ( #24 )
...
* Add Rust formatter rustfmt.
* Add LaTeX formatter latexindent.
There's a lot of LaTeX modes. I'm not sure how to distinguish them.
* Alphabetize apheleia-formatters and apheleia-mode-alist.
Alphabetizing them makes it easier to find which formatters are
supported.
* Add Java formatter with google-java-format.
* Add C and C++ formatter with clang-format.
* Update changelog
Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
2021-08-08 06:07:08 -07:00
Matthew Avant
52e0a140a8
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>
2021-07-22 19:16:42 -07:00
Radon Rosborough
f865c165da
Avoid triggering after-set-visited-file-name-hook
...
This was causing LSP to reconnect every time I saved.
2021-05-23 15:00:07 -07:00
Radon Rosborough
64cb9e7d70
[ #39 ] Don't mess up temporary buffers
2021-03-28 15:26:16 -07:00
Radon Rosborough
87115f5cda
Revert "[ #30 ] Run formatters in project root"
...
This reverts commit 66777303dc
.
See https://github.com/raxod502/apheleia/issues/36 ,
https://github.com/raxod502/apheleia/pull/37 for discussion.
2021-03-14 13:31:23 -07:00
Radon Rosborough
b4975ca1bb
Merge tag 'v1.1.2'
2021-02-26 22:04:53 -08:00
Radon Rosborough
53ac964e53
Release version 1.1.2
2021-02-26 22:04:05 -08:00
Radon Rosborough
02368ee1c7
[ raxod502/selectrum#437 ] Use default outline-regexp
2021-02-25 20:16:50 -08:00
Radon Rosborough
f487ef185c
Fix build for emacs-master
2021-02-20 09:37:36 -08:00
Leo Gaskin
1e95db3f81
Fix spelling error in buffer name ( #32 )
2021-02-20 09:36:28 -08:00
Radon Rosborough
66777303dc
[ #30 ] Run formatters in project root
2021-02-18 20:06:50 -08:00
Albert Peschar
1ee7f3bc79
Fix infinite loop with rebinding after-save-hook ( fixes #27 ) ( #28 )
...
* Fix infinite loop with rebinding after-save-hook (fixes #27 )
* Satisfy linter
* Add docstring for new var
* Update changelog
* apheleia-format-buffer is asynchronous
* Update apheleia.el
Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
2021-02-07 08:50:31 -08:00
Radon Rosborough
8a1e68441c
Enable Prettier in json-mode
2020-11-07 07:04:41 -08:00
Radon Rosborough
23ee6b5b4d
[ #21 ] Bugfix for 'filepath option
2020-11-07 04:38:39 -08:00
Radon Rosborough
3be4b486dc
[ #21 ] Make Prettier respect .prettierignore
2020-10-17 08:29:21 -07:00
Radon Rosborough
80e1b09dda
Revert "Work around 2^16 buffer char limit"
...
Unfortunately, we need to address the problem more fundamentally. The
previous fix causes the end of the buffer to be truncated under some
circumstances.
This reverts commit c77a781912
.
2020-08-23 14:38:45 -06:00
Radon Rosborough
c77a781912
Work around 2^16 buffer char limit
2020-08-23 13:09:43 -06:00
Radon Rosborough
6aff83d5ac
Release version 1.1.1
2020-07-16 08:26:51 -06:00
Brian Leung
9cf703544d
Add ocamlformat ( #19 )
2020-07-12 09:31:43 -06:00
Radon Rosborough
6bd6967179
Revert "[ #15 ] Attempt to stop wrecking undo history"
...
This reverts commit 621351bade
. It made
it impossible to undo reformatting operations.
2020-05-26 14:37:17 -06:00
Radon Rosborough
621351bade
[ #15 ] Attempt to stop wrecking undo history
2020-05-25 10:58:49 -06:00
Radon Rosborough
91df7b9d19
Add SPDX license identifier
2020-04-04 09:50:44 -06:00
Radon Rosborough
fe798e8824
Merge branch release 1.1
2020-04-02 08:58:41 -06:00
Radon Rosborough
c51a63a23e
Release version 1.1
2020-04-02 08:54:06 -06:00
Radon Rosborough
1d8d42d063
Alphabetize
2020-03-31 08:16:58 -06:00
Radon Rosborough
0c0085f246
[ #12 ] Try even harder to avoid formatting loop
2020-03-25 11:59:06 -06:00
Radon Rosborough
9258b562b5
[ #12 ] Try harder to avoid infinite formatting loop
2020-03-25 09:45:52 -06:00
Radon Rosborough
284d1c48f8
[ #12 ] Don't visit temporary file
2020-03-22 09:27:50 -06:00
Radon Rosborough
8112041d7e
[ #10 ] Make write-region hack more robust
2020-03-18 09:32:51 -06:00
Radon Rosborough
d596a59355
[ #10 ] Surface more errors
2020-03-18 09:32:49 -06:00
Radon Rosborough
2d6d3945a2
[ #8 ] Make sure to reformat correct buffer
2020-03-18 09:09:40 -06:00
Radon Rosborough
8e99a67cc1
Configure brittany for haskell
2020-02-19 22:47:09 -08:00
Kevin Foley
76f0d946e7
Write new-buffer to new-fname ( #9 )
...
* apheleia.el: (apheleia--create-rcs-patch): Write to new-fname from
new-buffer instead of writing from a temp buffer
2020-02-09 13:05:32 -08:00
Radon Rosborough
179219e619
[ #4 ] Impose maximum length for DP algorithm
2020-01-02 11:30:45 -07:00
Radon Rosborough
26ddaf3597
Fix bug running Prettier on modified buffer
2019-12-31 10:16:32 -07:00
Radon Rosborough
d56b8afcd3
Fix long line
2019-11-16 21:56:42 -08:00
Radon Rosborough
fab32d51a1
Release version 1.0
2019-09-20 17:12:09 -07:00
Radon Rosborough
e28a264989
Disable automatically for remote files
2019-09-20 17:08:43 -07:00
Radon Rosborough
49568bb166
Merge pull request #7 from terlar/add-terraform-formatter
...
Add terraform formatter
2019-08-15 17:48:56 -07:00
Terje Larsen
20c5ace107
Add terraform formatter
2019-08-15 23:06:12 +02:00
Akira Komamura
1d76c121ba
Set the process coding system
2019-08-15 20:02:28 +09:00
Radon Rosborough
4e9f797210
Remove json-mode from apheleia-mode-alist
...
It turns out json-mode is actually derived from js-mode, and I prefer
not to put derived modes in the alist. (This is because if you happen
to change the value for a derived mode, and the derived mode comes
later in the alist than the parent mode, then your change won't take
effect.)
2019-07-17 11:26:52 -07:00
Radon Rosborough
903d6b810c
Add apheleia-post-format-hook
2019-07-17 11:26:52 -07:00
Radon Rosborough
1258aa6a44
Allow let-binding apheleia-mode to nil
2019-07-15 22:44:22 -07:00
Radon Rosborough
ad5f79f5b3
[ #1 ] Allow passing filename directly to formatter
2019-07-15 22:38:17 -07:00
Radon Rosborough
55ee664caa
Backwards compatibility for (buffer-hash)
2019-07-10 22:17:34 -07:00
Radon Rosborough
ece42ec82b
Fix error on small buffers
2019-07-10 19:28:53 -07:00
Radon Rosborough
b12fcff9fa
Pass file extension to Prettier
2019-07-10 19:21:36 -07:00
Radon Rosborough
405f71143c
Prevent infinite recurrence
2019-07-10 19:21:29 -07:00