Commit graph

12362 commits

Author SHA1 Message Date
884046bf68 dev: updating from latest 2024-02-17 09:03:43 -05:00
8dd40db6b3 dev: updating from latest 2024-02-17 09:03:02 -05:00
Henrik Lissner
f0ad161643
fix(org): list checkbox toggle on RET
A subtle change in the way org-toggle-checkbox handles its prefix
argument changed how RET (+org/dwim-at-point) handled list
checkboxes (incorrectlying swapping [ ] with [-], but not back, unless
the cursor was directly on top of the checkbox).
2024-02-17 07:13:39 -05:00
Henrik Lissner
cce9438d9f
fix(default): +evil module flag typo 2024-02-17 07:13:39 -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
17d363e37a dev: updating from latest 2024-02-16 14:47:53 -05:00
86b6c312e2 dev: updating from latest 2024-02-16 14:47:38 -05:00
Luigi Sartor Piucco
0196f1e61a
bump: :completion corfu + evil-collection
The `evil-collection` upgrade is needed due to a recent breaking change
in Corfu's setup and teardown functions. `evil-collection`
`:after`-advised these with `#'evil-normalize-keymaps`, which accepts
only 1 optional argument. This was fine because the functions took no
arguments, but some have been introduced recently. Trying to initiate
completion would now throw a "too many arguments" error, and due to the
partial operation on the keymaps, make Emacs mostly unusable.

Related links:
- 9cebcfedca
- cf1a11912d
- 61a20a5036
- 2eb68ac588
2024-02-16 16:05:30 -03:00
Luigi Sartor Piucco
57edb204f3
feat(corfu): general move-to-minibuffer impl
We previously implemented only consult/vertico as a target for export,
now we have all of them. It was necessary to use case-by-case
conditions, unfortunately, because other UIs have subtle quirks that
prevent a single generalized approach to work.

Ivy is almost compliant, but it needs beg and end to not be markers.

Helm doesn't replace `completion-in-region-function`, it expects to go
around the default `completion--in-region`, so a small addition was made
to its module, because we weren't doing that. This was likely an
oversight due to the non-standard usage. This was fixed here because we
need it working for this feature.

Ido doesn't implement `completion-in-region` and its `completing-read`
is retricted to a list of strings as table, so it's treated the same as
absence of a framework, because it lacks the needed features.
2024-02-16 16:02:53 -03:00
7a1250ed80 dev: updating from latest 2024-02-16 07:19:13 -05:00
633d7659c5 dev: updating from latest 2024-02-16 07:18:51 -05:00
Henrik Lissner
3acb75cb16
bump: :lang dart
emacs-lsp/lsp-dart@e7ee6afc2e -> emacs-lsp/lsp-dart@f51c80f545

Includes a fix for the lsp-dart daemon failing to
start (emacs-lsp/lsp-dart#209).

Ref: emacs-lsp/lsp-dart#209
Close: #7677
Co-authored-by: abdulhaq-e <abdulhaq-e@users.noreply.github.com>
2024-02-15 15:51:35 -05:00
ccc7a77d27 dev: updating from latest 2024-02-15 10:57:22 -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
c7a6a47b1f dev: updating from latest pr7002 2024-02-14 10:17:31 -05:00
Kirill A. Korinsky
8651651125 tweak(wanderlust): don't show DomainKey-Signature 2024-02-14 03:15:54 -05:00
Kirill A. Korinsky
7710518869 bump: :email wanderlust
wanderlust/wanderlust@9fd2c65e8d -> wanderlust/wanderlust@c15e8ece4f
2024-02-14 03:15:54 -05:00
Henrik Lissner
fe776f8d84
fix(vertico): use remote fd in tramp buffers 2024-02-14 02:42:30 -05:00
Henrik Lissner
52355c6131
fix(org): initialize eldoc in org-mode buffers
A recent change upstream (see emacsmirror/org-contrib@6e208c87bf)
removed the autoload for adding org-eldoc-load to org-mode-hook, so we
have to add the hook ourselves (the function is still autoloaded,
fortunately).

Also moves org-eldoc config into its own use-package! block.

Fix: #7633
Ref: emacsmirror/org-contrib@6e208c87bf
2024-02-14 02:42:30 -05:00
e048bb18dc dev: merge branch 'pr7002' into emenel 2024-02-12 11:18:19 -05:00
71a7f77a24 dev: merge branch 'master' of into pr7002 2024-02-12 11:17:42 -05:00
Tim Ruffing
1c8f1b743a fix(popup): fix finding of major side window
Fix: #7647
Amend: #7598
2024-02-11 03:56:20 +01:00
Tim Ruffing
d6db0312fd tweak(org): honor default command when archiving
Change the binding for archiving to `org-archive-subtree-default`, which
is the recommend "catch-all" command in the org manual. The user can
specify the actual command in `org-archive-default-command`. The default
for this variable is `org-archive-subtree`, which we previously used for
the binding, so this commit changes behavior only for users who have set
`org-archive-default-command` explicitly.
2024-02-10 16:57:45 -05:00
2c44656601 dev: merge branch 'pr7002' into emenel 2024-02-10 12:51:10 -05:00
Luigi Sartor Piucco
e457a81489
bump: :completion corfu + evil-collection
The `evil-collection` upgrade is needed due to a recent breaking change
in Corfu's setup and teardown functions. `evil-collection`
`:after`-advised these with `#'evil-normalize-keymaps`, which accepts
only 1 optional argument. This was fine because the functions took no
arguments, but some have been introduced recently. Trying to initiate
completion would now throw a "too many arguments" error, and due to the
partial operation on the keymaps, make Emacs mostly unusable.

Related links:
- 9cebcfedca
- cf1a11912d
- 61a20a5036
- 2eb68ac588
2024-02-09 18:42:52 -03:00
Luigi Sartor Piucco
1603c6c7dd
feat(corfu): general move-to-minibuffer impl
We relied directly on consult for this, meaning it needed the vertico
module. Now, it should defer to the user's choice, including helm, ivy
and ido. Note the convention for this indirection is using the
`completing-read` API, which all such packages implement. This diverges
from Corfu's suggestion of `completion-in-region`, which only vertico
and ivy seem to implement.
2024-02-09 18:42:52 -03:00
Luigi Sartor Piucco
188e73b057
feat(corfu): impl smart confirm in minibuffer
An issue when using corfu in the minibuffer was the need for pressing
RET twice, since the first only inserts the completion. This commit
aliviates that by providing C-RET to ignore completion and conclude the
minibuffer immediatelly and S-RET to insert completion then conclude.
2024-02-09 18:42:51 -03:00
Luigi Sartor Piucco
628280040f
fix(corfu): move binds to :config default
Bindings were moved to the `:config default` module and some keys were
adjusted to match Company/other modules. Small formatting issues and
some apparently unintended nestings were corrected as well. The changes
were documented in the README.
2024-02-09 18:42:22 -03:00
46ede70b9e dev: merge branch 'pr7002' into emenel 2024-02-09 14:35:15 -05:00
dfa9c87611 dev: updating from latest pr7002 2024-02-09 14:35:03 -05:00
Luigi Sartor Piucco
28ffdd016d
feat(corfu, vertico): use equal orderless config
This removes the old `&` separator for Vertico (does anyone use that
instead of just space?) in favor of escapable space and unifies
orderless config with Corfu. Also implements smart separator
insert/escape/reset on `C-SPC`

Co-authored-by: Liam Hupfer <liam@hpfr.net>
2024-02-09 16:28:20 -03:00
StrawberryTea
a265414d6d
feat(corfu): more CAPFs and ergonomy changes
Add various CAPFs from cape:
- `cape-dabbrev`;
- `cape-emoji`;
- `cape-dict`;
Fixed some CAPFs via cape:
- Make non-exclusive, purified and silent `pcomplete-completions-at-point`;
- Make non-exclusive and non-interruptable `lsp-completion-at-point`;
- Make non-exclusive `eglot-completion-at-point`;
- Make non-exclusive `comint-completion-at-point`;
Fix and improve keybindings:
- Smart `DEL`/`backspace` for `+tng`;
- Smart `RET`;
Add depth to CAPFs, allowing ordering to be adjustable.
Enable in minibuffer.
2024-02-09 16:28:20 -03:00
Luigi Sartor Piucco
ac665e751e
feat(corfu): add snippets
Yasnippet is now properly integrated! A previosly-unset default has now
been given to `corfu-on-exact-match`. With snippets, it causes immediate
expansion upon single match by default, so we set it to nil and
recommend against changing it in the README.
2024-02-09 16:28:20 -03:00
Luigi Sartor Piucco
f7314bebbb
module: add :completion corfu
This commit's primary goal is allowing use of
[minad/corfu](https://github.com/minad/corfu) as an alternative to
[company](https://github.com/company-mode/company-mode). It introduces a
module under :completion for this purpose, plus some conditionals on
other relevant modules to toggle functionality like lsp back-ends and
[minad/cape](https://github.com/minad/cape) capfs for certain modes.

Other optional or miscellaneous features include:

- Support for displaying the completion's documentation on a secondary
  popup;
- Support for terminal display if :os tty;
- Support for icons if +icons;
- Support for tab-and-go completion if +tng;
2024-02-09 16:28:15 -03:00
Colin Woodbury
b655f6aa1f docs(fortran): show how to customize fprettier 2024-02-08 23:14:37 -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
5ef7075f96
nit(popup): mention post-command-select-window for 30.x+
Ref: emacs-mirror/emacs@6f75d0f36d
2024-02-08 00:58:20 -05:00
441792f601 dev: updating from latest pr7002 2024-02-07 08:33:06 -05:00
5002a34111 dev: updating from latest pr7002 2024-02-07 08:32:52 -05:00
Henrik Lissner
a2484538b4
bump: :tools magit :emacs vc
magit/forge@ba35ffc9ba -> magit/forge@3fc6c362b0
magit/git-modes@4a61a9b86d -> magit/git-modes@3cc94974c0
magit/magit@54d37dc14c -> magit/magit@b68e0a3c33

Ref: magit/forge@3fc6c362b0
2024-02-07 00:33:50 -05:00
Henrik Lissner
a5ff292cbd
fix(emacs-lisp): 'defining as dynamic an already lexical var' error
Fix: #7653
Amend: 3bea4f66a8
2024-02-07 00:30:51 -05:00
Colin Woodbury
3dbbd8b68d feat(common-lisp): introduce sly-overlay 2024-02-06 16:09:16 -05:00
7cef14960a dev: updating from latest pr7002 2024-02-06 14:05:25 -05:00
Luigi Sartor Piucco
37da8c54dc
bump: :completion corfu + evil-collection
The `evil-collection` upgrade is needed due to a recent breaking change
in Corfu's setup and teardown functions. `evil-collection`
`:after`-advised these with `#'evil-normalize-keymaps`, which accepts
only 1 optional argument. This was fine because the functions took no
arguments, but some have been introduced recently. Trying to initiate
completion would now throw a "too many arguments" error, and due to the
partial operation on the keymaps, make Emacs mostly unusable.

Related links:
- 9cebcfedca
- cf1a11912d
- 61a20a5036
- 2eb68ac588
2024-02-06 15:24:09 -03:00
Luigi Sartor Piucco
5ac126624c
feat(corfu): general move-to-minibuffer impl
We relied directly on consult for this, meaning it needed the vertico
module. Now, it should defer to the user's choice, including helm, ivy
and ido. Note the convention for this indirection is using the
`completing-read` API, which all such packages implement. This diverges
from Corfu's suggestion of `completion-in-region`, which only vertico
and ivy seem to implement.
2024-02-06 15:24:09 -03:00
Luigi Sartor Piucco
2f755aaffe
feat(corfu): impl smart confirm in minibuffer
An issue when using corfu in the minibuffer was the need for pressing
RET twice, since the first only inserts the completion. This commit
aliviates that by providing C-RET to ignore completion and conclude the
minibuffer immediatelly and S-RET to insert completion then conclude.
2024-02-06 15:24:09 -03:00
Luigi Sartor Piucco
76012e3959
fix(corfu): move binds to :config default
Bindings were moved to the `:config default` module and some keys were
adjusted to match Company/other modules. Small formatting issues and
some apparently inintended nestings were corrected as well.
2024-02-06 15:24:09 -03:00