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
Ellis Kenyő
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
Colin Woodbury
20cdba39a8
fix(evil): more reliable window detection
...
At some point `windmove-find-other-window` stopped loading reliably,
such that `SPC w H` would complain of a missing symbol. Indeed
navigating to the implementation of `windmove` within Emacs's Lisp we
find warnings that it has mostly been superceded by newer window APIs
since 2013, and is implemented in terms of `window-in-direction`.
By using `window-in-direction` directly, the loading problem disappears.
2023-09-12 21:20:23 +02:00
Henrik Lissner
bef076b655
bump: :editor evil
...
emacs-evil/evil@9eb69b7f5b -> emacs-evil/evil@5fc16776c5
emacs-evil/evil-collection@1ad283f5b7 -> emacs-evil/evil-collection@8be4b75c86
- Fixes breaking change due to emacs-mirror/emacs@802a54ad62 (see
#7397 ).
Ref: debbugs.gnu.org/cgi/bugreport.cgi?bug=62248
Close : #7397
Co-authored-by: prashantvithani <prashantvithani@users.noreply.github.com>
2023-09-09 23:59:22 +02:00
Amos Bird
ca9f84d664
fix(evil): add evil-embrace support for c++-ts-mode
...
In emacs-29, native tree-sitter adds new major modes for the C++
language, named c++-ts-mode. As a result, hooks in c++-mode will not
run. This commit adds the angle bracket fix hook for c++-ts-mode.
2023-09-09 23:59:06 +02:00
Henrik Lissner
56187fc35a
merge: pull request #7359 from theschmocker/snippet-command-fixes-and-enhancements
2023-09-08 23:24:48 +02:00
Lorenzo Ravaglia
25602409b6
refactor(file-templates): c++-mode/__main.cpp: modernize
...
- Drops `using namespace std`: a known anti-pattern which imports a
massive namespace into the global namespace. See
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
- Modernizes/generalizes `main`'s signature with a trailing return
type (C++11)
Ref: https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
Close : #7387
2023-09-07 20:22:58 +02:00
Lorenzo Ravaglia
9cc9351cae
feat(file-templates): add c-mode/__main.c
...
Ref: #7387
2023-09-07 20:22:58 +02:00
Liam Hupfer
9c2d50d97e
nit: fix docstrings
2023-09-02 11:46:07 -05:00
Henrik Lissner
9e9c7d9e6d
bump: :editor evil
...
edkolev/evil-lion@a55eb64742 -> edkolev/evil-lion@1e838a53b8
emacs-evil/evil@60ba716bf5 -> emacs-evil/evil@9eb69b7f5b
hlissner/evil-snipe@c07788c35c -> hlissner/evil-snipe@c2108d3932
mamapanda/evil-traces@d4c53bd6ad -> mamapanda/evil-traces@82e8a7b421
- Includes two fixes for breaking changes in evil:
- mamapanda/evil-traces#5 (due to breaking changes in evil-ex.el)
- emacs-evil/evil#1824 (due to removal of evil-unquote function)
Fix : mamapanda/evil-traces#5
Fix : emacs-evil/evil#1824
2023-08-21 18:09:02 +02:00
Henrik Lissner
21df7d0beb
bump: :editor evil
...
cute-jumper/evil-embrace.el@7b5a539cfe -> cute-jumper/evil-embrace.el@3081d37811
emacs-evil/evil-collection@aaf3e0038e -> emacs-evil/evil-collection@1ad283f5b7
emacs-evil/evil-surround@f273821f57 -> emacs-evil/evil-surround@8fad8540c4
emacs-evil/evil@2ce03d412c -> emacs-evil/evil@60ba716bf5
mamapanda/evil-traces@290b532354 -> mamapanda/evil-traces@d4c53bd6ad
redguardtoo/evil-nerd-commenter@8c0f23d46a -> redguardtoo/evil-nerd-commenter@3b197a2b55
Ref: mamapanda/evil-traces#5
Ref: cute-jumper/evil-embrace.el#10
2023-08-20 22:16:12 +02:00
theschmocker
406594b9af
refactor(snippets): use cond instead of nested if
2023-08-19 21:59:48 -05:00
theschmocker
363706744d
feat(snippets): select mode for new snippet
...
When there are extra yasnippet modes loaded in the current buffer,
prompt user to select one for the new snippet.
If a prefix arg is supplied when calling `+snippets/new`, prompt user to
select any mode.
2023-08-19 21:49:51 -05:00
theschmocker
4643376268
fix(snippets): fix +snippets/new and +snippets/new-alias file creation
...
When adding a snippet/alias to a mode for the first time, setting
`default-directory` before calling `+snippet--ensure-dir` would cause an
error due to the directory not existing. As a fix, return the dir from
`+snippet--ensure-dir` and bind `default-directory` to that.
Additionally, not having a file associated with the buffer caused issues
with loading the snippet after using snippet-mode's C-c C-c binding,
especially when other directories were added to yasnippet's load paths.
As a solution for this, prompt the user for a snippet key and set the
buffer's file name to it within the snippet dir. If an existing file
would be overwritten, ask user for confirmation. As an additional
convenience, set the snippet's key field to the entered value.
Finally, replace %alias with doom-snippets-expand in the generated alias
snippets. Not aware of any history here, but %alias did not work for me.
2023-08-19 21:49:11 -05:00
theschmocker
41f31ba9ce
fix(snippets): fix snippet uuid completion
...
Rather than attempting to read the uuid from a text property on the
selected completion -- which gets stripped by vertico (and possibly
helm) -- grab it from a lookup alist of completion-candidat->uuid.
Essentially the same as the proposed implementation by @jgrey4296
on #4127
Fix : #4127
2023-08-19 21:00:15 -05:00