5cc4056abf
fix(format): +format-with-eglot-fn: eglot detection
2024-03-13 01:00:38 -04:00
5c7149da67
docs(format): +format-in-org-src-blocks-fn: add docstring
2024-02-17 07:13:39 -05:00
1e8fd09120
fix(format): +format-in-org-src-blocks-fn
...
Didn't return non-nil, so whether or not it worked, Apheleia would
attempt to (ineffectually) format the org buffer afterwards.
Also remove unneeded beg/end checks (the functions always receive a
value).
2024-02-17 07:13:39 -05:00
9ba6d7191c
refactor(format): improve lsp/eglot formatter dispatchers
2024-02-14 18:12:22 -05:00
e9ea3cc591
feat(format): add eglot support
...
Fix : #7673
2024-02-14 18:12:22 -05:00
20de3d0f29
refactor(format): introduce +format-functions
2024-02-14 18:12:22 -05:00
e701522d68
bump: :editor
...
doomemacs/snippets@d490cba6d7 -> doomemacs/snippets@f022984ee1
emacs-straight/adaptive-wrap@fc9f0306f1 -> emacs-straight/adaptive-wrap@70005d2012
emacs-tree-sitter/ts-fold@75e72c658a -> emacs-tree-sitter/ts-fold@0627723e5f
joaotavora/yasnippet@5cbdbf0d20 -> joaotavora/yasnippet@297546f085
joostkremers/visual-fill-column@695a597892 -> joostkremers/visual-fill-column@db7c7c2365
justinbarclay/parinfer-rust-mode@6e6bdeeba3 -> justinbarclay/parinfer-rust-mode@8df117a3b5
raxod502/apheleia@56651724ad -> raxod502/apheleia@96a9805ecb
2024-02-04 19:18:24 -05:00
659f7bfc71
refactor!: deprecate IS-* OS constants
...
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:
IS-MAC -> (featurep :system 'macos)
IS-WINDOWS -> (featurep :system 'windows)
IS-LINUX -> (featurep :system 'linux)
IS-BSD -> (featurep :system 'bsd)
The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.
Fix : #7479
2024-02-04 17:54:29 -05:00
9a1022ef08
bump: :editor format
...
radian-software/apheleia@c222927f70 -> radian-software/apheleia@56651724ad
fbd00b6
changes aphelia-core to aphelia, but only in 1 out of 2 places
and this is not the correct name in the version pinned in doom.
Fix : #7568
Amend: fbd00b6a08
2023-11-29 11:27:06 -05:00
fbd00b6a08
fix(format): correct name of feature
2023-11-27 09:37:11 -05:00
c076b1237f
docs(format): reasoning for using +format/buffer
2023-11-27 09:37:11 -05:00
9da33cf9e7
docs(format): describe interaction between +onsave and LSP
2023-11-27 09:37:11 -05:00
9d8f657b37
refactor(format): describe what hook does
2023-11-27 09:36:58 -05:00
85d20f71ca
docs(format): fix name of doom-package
2023-11-27 09:36:58 -05:00
9b718f8a5a
docs(format): document +format-on-save-disabled-modes in README
2023-11-27 09:36:58 -05:00
cdbf97b4e9
fix(format): align behaviour and documentation
...
`+format-on-save-disabled-modes` documentation was referencing behaviour
that no longer exists, as well as documenting behaviour that was not
implemented.
2023-11-27 09:36:58 -05:00
a4d95674ec
tweak(format): doom-debug-variables: add apheleia-log-only-errors
2023-09-20 20:23:59 +02:00
cdbf58a871
refactor(format): swap to string-blank-p & memq
2023-09-20 20:23:59 +02:00
88bb045388
docs(*): replace all-the-icons with nerd-icons
...
Also colorizes the leading icon in notices.
2023-09-16 20:19:11 +02:00
aab5215951
fix(format): use +vc-gutter-update-h instead
...
+vc-gutter-init-maybe-h is not defined when using +diff-hl so instead
let's use +vc-gutter-update-h to refresh the VC gutter.
2023-09-16 05:00:25 +02:00
e44508f67c
docs(format): improve note about regional formatting
2023-09-15 20:38:29 +02:00
7920b0d46c
fix(format): update missing values & set buffer modification
...
This prevents apheleia complaining about the editing buffer being
killed.
Co-authored-by: Wang Liao <lwlw1988@gmail.com >
2023-09-15 20:38:29 +02:00
3191349182
docs(format): set-formatter!: escape quotes in docstring
2023-09-14 20:17:24 +02:00
0b2e6d7070
docs(format): clarify how to update macro in private config
2023-09-14 20:06:51 +02:00
dd68bbb7da
fix(format): removed unused argument
2023-09-13 20:21:08 +01:00
ce93f899fd
fix(format): improve function/module loading safety
2023-09-13 20:21:08 +01:00
249a39acb4
fix(format): pin apheleia
2023-09-13 20:21:07 +01:00
12d520a377
fix(format): remove merged formatter
2023-09-13 20:21:07 +01:00
b0e579741e
fix(format): react to ns change
2023-09-13 20:21:07 +01:00
550767efe2
fix(format): apheleia-inhibit-functions after load
2023-09-13 20:21:07 +01:00
b34533de96
fix(format): load format-on-save-disabled-modes fn
...
Should handle some corner cases with how inhibiting is set
2023-09-13 20:21:07 +01:00
926b8f1328
docs(format): redo docs to handle refactor
2023-09-13 20:21:07 +01:00
457aeeccc0
fix(format): better handle format-on-save disable
2023-09-13 20:21:07 +01:00
dc3b5c3710
fix(format): handle git-gutter nicely
2023-09-13 20:21:01 +01:00
cd79edf134
feat(format): add :lang emacs-lisp formatter
...
Introduce a formatter function for emacs-lisp (tracked upstream here
[1]) that tries to preserve as much of what the user wants as possible
[1]: https://github.com/radian-software/apheleia/pull/102
2023-09-13 20:20:58 +01:00
3aa9796b84
fix(format): resolve list expansion issues
...
The argument list was being expanded incorrectly, this should now be resolved.
2023-09-13 20:20:58 +01:00
4ecd616cd8
refactor(format): replace with apheleia
...
Initial refactor of format module to replace format-all with apheleia
2023-09-13 20:19:59 +01:00
5ac2a5258b
docs: change link format
2022-10-05 01:01:19 +02:00
ad6a3d0f33
refactor: deprecate featurep! for modulep!
...
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.
featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
057e6c531c
refactor: replace doom-enlist with ensure-list
...
doom-enlist is now a deprecated alias for ensure-list, which is built
into Emacs 28.1+ and is its drop-in replacement. We've already
backported it for 27.x users in doom-lib (in 4bf4978
).
Ref: 4bf49785fd
2022-08-07 19:43:13 +02:00
1abcf913aa
revert: fix(docs): set mode in file-local vars
...
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab
.
emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.
Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
7e400abdc0
fix(docs): set mode in file-local vars
...
Due to emacs-straight/org-mode@e22b4eb , a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.
Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
1255315bfc
refactor(docs): replace nav menus with virtual one
...
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
e77a45bc22
docs: use lowercase keywords
...
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
7246db457c
docs: replace doom-source with doom-repo links
...
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
88844e9cec
docs: simplify internal docs links
...
Fewer links means less confusion.
- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
9ada400805
docs(:editor): update READMEs to new format
2021-11-21 20:04:28 +01:00
4549b275f2
fix(format): format-all-mode not activating
...
Also makes format-all log more when doom-debug-mode is on.
Fix #5589
2021-10-06 13:58:16 +02:00
06392a723f
refactor: rename orig-fn arg in advice to fn
...
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
bf488394e9
editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting.
2021-07-27 17:49:57 +08:00