Commit graph

50 commits

Author SHA1 Message Date
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
Radon Rosborough
80bf0874bc Add Makefile and fix problems it found 2019-07-10 19:12:20 -07:00
Radon Rosborough
3cfd8f4ec2 Add user-facing formatter configuration 2019-07-10 19:04:02 -07:00
Radon Rosborough
e6963c2df1 Implement apheleia-format-buffer 2019-07-09 21:15:37 -07:00
Radon Rosborough
b13630ee41 Implement process handling functions 2019-07-09 21:00:20 -07:00
Radon Rosborough
758540c45e Restore scroll position 2019-07-08 22:35:37 -07:00
Radon Rosborough
86753a0e14 Remove debugging statements 2019-07-08 21:58:25 -07:00
Radon Rosborough
1811b0aafe Use hash tables instead of arrays 2019-07-08 21:56:09 -07:00
Radon Rosborough
e5b1f22a9e Use dynamic programming instead of memoization 2019-07-08 21:15:05 -07:00
Radon Rosborough
4feddce644 Refactor and preserve (window) point 2019-07-07 22:30:39 -07:00
Radon Rosborough
ddc1fddd08 Implement RCS patch application 2019-07-07 21:09:12 -07:00
Radon Rosborough
283bd7b774 Implement dynamic-programming string alignment 2019-07-07 18:09:54 -07:00
Radon Rosborough
73c0a3b219 Add Elisp project skeleton 2019-07-07 14:13:57 -07:00