Ian McCowan
c564c17a6b
fix(fold): reorder fold type checks
...
(+fold--ts-fold-p) just checks that the mode is active so it will block
any checks following it. Move it to the end so other fold types have a
chance, and consistently order fold type checks.
2024-03-19 23:57:15 -04:00
Henrik Lissner
5cc4056abf
fix(format): +format-with-eglot-fn: eglot detection
2024-03-13 01:00:38 -04:00
Henrik Lissner
198fe82b6d
feat(lib): backport find-sibling-file
...
I will slowly phase out projectile in favor of project.el, starting with
projectile-find-other-file, which -- as of Emacs 29 -- has a native
alternative: `find-sibling-file`.
Ref: doomemacs/community#1
2024-03-11 00:53:44 -04:00
Henrik Lissner
179e300bfd
bump: visual-fill-column
...
https://codeberg.org/joostkremers/visual-fill-column@db7c7c236555 -> emacsmirror/visual-fill-column@5e74afe39d
codeberg has uptime issues. Where possible, we should prefer Github
sources.
Fix : #7013
2024-03-04 03:26:07 -05:00
Henrik Lissner
5c7149da67
docs(format): +format-in-org-src-blocks-fn: add docstring
2024-02-17 07:13:39 -05:00
Henrik Lissner
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
Henrik Lissner
9ba6d7191c
refactor(format): improve lsp/eglot formatter dispatchers
2024-02-14 18:12:22 -05:00
Henrik Lissner
e9ea3cc591
feat(format): add eglot support
...
Fix : #7673
2024-02-14 18:12:22 -05:00
Henrik Lissner
20de3d0f29
refactor(format): introduce +format-functions
2024-02-14 18:12:22 -05:00
Benjamin Schwehn
4db347769e
fix(file-templates): unknown directive error from __license-lgpl3
...
The misspelling produces a 'Ignoring unknown directive "contribuer"'
error, which was introduced in joaotavora/yasnippet@25f5d88 .
Ref: joaotavora/yasnippet@25f5d8808a
2024-02-08 23:11:48 -05:00
Henrik Lissner
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
Henrik Lissner
151b67baf2
bump: :editor evil
...
TheBB/evil-indent-plus@b4dacbfdb5 -> TheBB/evil-indent-plus@f392696e48
emacs-evil/evil-collection@8be4b75c86 -> emacs-evil/evil-collection@8c84f9bc89
emacs-evil/evil-surround@8fad8540c4 -> emacs-evil/evil-surround@c7116cdc77
emacs-evil/evil@5fc16776c5 -> emacs-evil/evil@5995f6f21f
2024-02-04 19:17:18 -05:00
Henrik Lissner
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
RBckmnn
d509d8bea1
fix(file-templates): invalid function call
...
`evil-initialize-state` recently changed to no longer accept any
arguments, so use `evil-change-state` instead.
Ref: emacs-evil/evil@1c4c3bfff8
2024-02-01 02:38:34 -05:00
Henrik Lissner
b1d8d1cd9f
nit: reformatting, comment, and markup revision
2023-12-02 11:34:10 -05:00
Peter Hoeg
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
John Goff
fbd00b6a08
fix(format): correct name of feature
2023-11-27 09:37:11 -05:00
John Goff
c076b1237f
docs(format): reasoning for using +format/buffer
2023-11-27 09:37:11 -05:00
John Goff
9da33cf9e7
docs(format): describe interaction between +onsave and LSP
2023-11-27 09:37:11 -05:00
John Goff
9d8f657b37
refactor(format): describe what hook does
2023-11-27 09:36:58 -05:00
John Goff
85d20f71ca
docs(format): fix name of doom-package
2023-11-27 09:36:58 -05:00
John Goff
9b718f8a5a
docs(format): document +format-on-save-disabled-modes in README
2023-11-27 09:36:58 -05:00
John Goff
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
StrawberryTea
2a875d9727
refactor(evil): remove lisp prefix-function embrace pair
...
A more generalized lisp prefix function was added upstream, so ours is
no longer needed.
Ref: cute-jumper/embrace.el#26
2023-11-24 11:00:52 -05:00
Henrik Lissner
80f8b6b680
bump: :editor fold
...
emacs-tree-sitter/ts-fold@9d9e0c5cf7 -> emacs-tree-sitter/ts-fold@75e72c658a
- (#7480 ) Adds/enhances support for new languages.
Co-authored-by: jperras <jperras@users.noreply.github.com>
Close : #7480
Ref: https://github.com/emacs-tree-sitter/ts-fold/releases/tag/0.2.0
2023-11-23 18:32:35 -05:00
Henrik Lissner
96aed4bf35
perf(evil): defer evil-collection-tab-bar
...
It gets pulled in early and unavoidably, slowing down startup.
2023-09-20 21:01:05 +02:00
Henrik Lissner
a4d95674ec
tweak(format): doom-debug-variables: add apheleia-log-only-errors
2023-09-20 20:23:59 +02:00
Henrik Lissner
cdbf58a871
refactor(format): swap to string-blank-p & memq
2023-09-20 20:23:59 +02:00
Henrik Lissner
0f663d007b
docs(evil,latex,vterm,treemacs): correct notices
...
Use the correct symbol for warnings.
Amend: 88bb045388
2023-09-17 03:27:49 +02:00
Henrik Lissner
88bb045388
docs(*): replace all-the-icons with nerd-icons
...
Also colorizes the leading icon in notices.
2023-09-16 20:19:11 +02:00
LemonBreezes
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
Ellis Kenyo
e44508f67c
docs(format): improve note about regional formatting
2023-09-15 20:38:29 +02:00
Ellis Kenyo
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
Henrik Lissner
3191349182
docs(format): set-formatter!: escape quotes in docstring
2023-09-14 20:17:24 +02:00
Ellis Kenyo
0b2e6d7070
docs(format): clarify how to update macro in private config
2023-09-14 20:06:51 +02:00
Henrik Lissner
a234d8e9c0
merge: pull request #6369 from elken/feature/editor-format-refactor
2023-09-14 01:19:01 +02:00
Henrik Lissner
420474222e
bump: :editor lispy parinfer snippets word-wrap
...
abo-abo/lispy@097dd66e66 -> abo-abo/lispy@fe44efd215
doomemacs/snippets@fe4003014a -> doomemacs/snippets@d490cba6d7
emacs-straight/adaptive-wrap@0d5b4a07de -> emacs-straight/adaptive-wrap@fc9f0306f1
joaotavora/yasnippet@5cbdbf0d20 -> joaotavora/yasnippet@76e1eee654
justinbarclay/parinfer-rust-mode@332c7f4742 -> justinbarclay/parinfer-rust-mode@6e6bdeeba3
2023-09-14 01:04:09 +02:00
Henrik Lissner
1fce8522f8
bump: :editor multiple-cursors
...
gabesoft/evil-mc@63fd2fe0c2 -> gabesoft/evil-mc@bdf893ea6f
magnars/multiple-cursors.el@16223efc2d -> magnars/multiple-cursors.el@234806c832
- Fixes evil-mc for recent versions of evil (#7415 ).
Close : #7415
Co-authored-by: Mo0dy <Mo0dy@users.noreply.github.com>
2023-09-14 01:04:09 +02:00
Ellis Kenyo
dd68bbb7da
fix(format): removed unused argument
2023-09-13 20:21:08 +01:00
Ellis Kenyo
ce93f899fd
fix(format): improve function/module loading safety
2023-09-13 20:21:08 +01:00
Ellis Kenyo
249a39acb4
fix(format): pin apheleia
2023-09-13 20:21:07 +01:00
Ellis Kenyo
12d520a377
fix(format): remove merged formatter
2023-09-13 20:21:07 +01:00
Ellis Kenyo
b0e579741e
fix(format): react to ns change
2023-09-13 20:21:07 +01:00
Ellis Kenyo
550767efe2
fix(format): apheleia-inhibit-functions after load
2023-09-13 20:21:07 +01:00
Ellis Kenyo
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
Ellis Kenyő
926b8f1328
docs(format): redo docs to handle refactor
2023-09-13 20:21:07 +01:00
Ellis Kenyő
457aeeccc0
fix(format): better handle format-on-save disable
2023-09-13 20:21:07 +01:00
Ellis Kenyő
dc3b5c3710
fix(format): handle git-gutter nicely
2023-09-13 20:21:01 +01:00
Ellis Kenyő
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
Ellis Kenyő
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