Commit graph

18624 commits

Author SHA1 Message Date
Luigi Sartor Piucco
75eef5e9b6
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.
2023-12-21 12:23:10 -03:00
Luigi Sartor Piucco
f5b3531f28
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.
2023-12-21 12:23:10 -03:00
Luigi Sartor Piucco
b245bb3492
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>
2023-12-21 12:23:10 -03:00
StrawberryTea
b6960fb9be
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.
2023-12-21 12:23:08 -03:00
Luigi Sartor Piucco
01dbcdb221
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.
2023-12-21 12:16:05 -03:00
Luigi Sartor Piucco
417c5ba204
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;
2023-12-21 12:16:04 -03:00
Kalle Lindqvist
03d692f129 fix(vertico): embark open in new workspace action 2023-12-08 15:11:45 -05:00
Ocean Shen
f6851d56ef fix(org): correct face for doom-user links
`org-link-set-parameters` accepts `:face` for a function returning a face
or a symbol naming a face. Use a lambda returning `org-priority` to
avoid it being called directly as a function.
2023-12-07 21:47:11 -05:00
Yuriy Glukhov
abd29569a6
bump: :lang nim
nim-lang/nim-mode@744e076f0b -> nim-lang/nim-mode@1338e5b0d5
2023-12-06 12:40:42 -05:00
Henrik Lissner
4d072ce888
release(modules): 23.12.0-dev
This version bumps comes 3 months due to a short hiatus from moving back
from Denmark to Toronto and all the ensuing catch-up.

Ref: 2b39e41368
2023-12-02 13:57:53 -05:00
Henrik Lissner
36d18d6da5
fix(cc): enable lsp in cuda-mode
Fix: #7576
2023-12-02 11:34:10 -05:00
Henrik Lissner
5b9da18bc1
fix(csharp): enable lsp in csharp-tree-sitter-mode
Fix: #7541
2023-12-02 11:34:10 -05:00
Henrik Lissner
b1d8d1cd9f
nit: reformatting, comment, and markup revision 2023-12-02 11:34:10 -05:00
Henrik Lissner
0d8479ae9b
tweak: emit feedback when started in daemon mode 2023-12-02 11:34:10 -05:00
Henrik Lissner
f8274f208c
bump: :lang org
aimebertrand/org-mac-link@3a30a937e1 -> aimebertrand/org-mac-link@e30171a6e9
alf/ob-restclient.el@ded3b7eb7b -> alf/ob-restclient.el@1a127eb016
awth13/org-appear@eb9f9db40a -> awth13/org-appear@81eba5d7a5
bastibe/org-journal@18df4d5ae5 -> bastibe/org-journal@a306f76ee2
emacs-jupyter/jupyter@1baabc8f2d -> emacs-jupyter/jupyter@0a92c0c978
emacs-straight/org-mode@e90a8a69a7 -> emacs-straight/org-mode@57b94f3447
emacsmirror/org-contrib@dc59cdd46b -> emacsmirror/org-contrib@79286861ae
hakimel/reveal.js@07a6cf1249 -> hakimel/reveal.js@d5896c968b
magit/orgit-forge@8ba92a54ae -> magit/orgit-forge@f595a30aa7
magit/orgit@4a58502987 -> magit/orgit@b60efabc4a
oer/org-re-reveal@93396b531b -> oer/org-re-reveal@e7895dae98
org-noter/org-noter@ab838691f0 -> org-noter/org-noter@a4296d8338

Ref: bastibe/org-journal#415
Close: #7506
Fix: #7545
Co-authored-by: SeanMaclochlainn <SeanMaclochlainn@users.noreply.github.com>
2023-12-02 11:34:10 -05:00
Henrik Lissner
c7ddbe049f
fix(swift): set-eglot-client!: extra argument
And move setter out of condition (it will no-op if :tools lsp +eglot
isn't enabled). Plus, it should be configured even when +lsp isn't
enabled for :lang swift.

Amend: #7567
Close: #7577
Co-authored-by: ncihnegn <ncihnegn@users.noreply.github.com>
2023-12-02 11:34:10 -05:00
Tim Ruffing
a89d4b7df5
tweak(default): add binding for undo-tree
This also makes the check for the presence of vundo consistent with the
rest of the file by using modulep! instead of fboundp.
2023-12-01 13:15:36 -05:00
Liam Hupfer
29b19412f6 dev: ignore .DS_Store at top level 2023-11-29 23:18:26 -05:00
Henrik Lissner
fde4289f5c
bump: :completion company helm ivy
Sodel-the-Vociferous/helm-company@6eb5c2d730 -> Sodel-the-Vociferous/helm-company@4622b82353
abo-abo/swiper@9d630d800e -> abo-abo/swiper@8c30f4cab5
bbatsov/helm-projectile@35a2111d00 -> bbatsov/helm-projectile@e2e38825c9
company-mode/company-mode@9b21604d19 -> company-mode/company-mode@ed46a616ab
emacs-helm/helm-org@d67186d3a6 -> emacs-helm/helm-org@c80e53315c
emacs-helm/helm@dfd6403947 -> emacs-helm/helm@96aad023cb
emacs-jp/helm-c-yasnippet@e214eec8b2 -> emacs-jp/helm-c-yasnippet@c5880e740d
radian-software/prescient.el@d7cc55dad4 -> radian-software/prescient.el@707c25c947
tumashu/helm-posframe@87461b52b6 -> tumashu/helm-posframe@0b6bb016f0
yyoncho/helm-icons@53349000b1 -> yyoncho/helm-icons@0d113719ee
2023-11-29 23:14:34 -05:00
Henrik Lissner
88c59129ec
fix(lib): doom/bumpify-diff: skip non-package! forms
Would formerly error out if it tries to read invalid forms in misc files
included in bump commits.
2023-11-29 23:14:11 -05:00
Henrik Lissner
d55b078fa1
bump: :checkers
alexmurray/flycheck-posframe@8f60c9bf12 -> alexmurray/flycheck-posframe@19896b922c
bnbeckwith/writegood-mode@ed42d918d9 -> bnbeckwith/writegood-mode@d54eadeedb
d12frosted/flyspell-correct@7d7b6b0118 -> d12frosted/flyspell-correct@1e7a5a5636
flycheck/flycheck@784f184cdd -> flycheck/flycheck@e56e30d8c6
ideasman42/emacs-spell-fu@aed6e87aa3 -> ideasman42/emacs-spell-fu@e403193580
mhayashi1120/Emacs-langtool@8276eccc55 -> mhayashi1120/Emacs-langtool@d86101eafe
2023-11-29 23:14:10 -05:00
Henrik Lissner
6ca6bf0935
bump: :lang haskell
emacs-lsp/lsp-haskell@918ffa2516 -> emacs-lsp/lsp-haskell@89d1637043
haskell/haskell-mode@3e146c1a89 -> haskell/haskell-mode@79eaf444a7

- (#7569) Fixes flymake-proc load error.

Fix: #7569
Close: #7574
Co-authored-by: PatrickNorton <PatrickNorton@users.noreply.github.com>
2023-11-29 23:13:55 -05:00
Henrik Lissner
f9c2397a3c
fix: autoloads load order in profile bootstrap
Package autoloads should be assembled in the order they're
installed/built, so that dependencies between them (such as the case
where geiser-* packages call geiser-activate-implementation, which is
defined in geiser.el's autoloads file -- see #7472) don't throw errors.

Fix: #7472
Amend: 87f6f7ab91
2023-11-29 16:10:09 -05:00
Henrik Lissner
87f6f7ab91
bump: :lang scheme
emacs-geiser/chez@246ec4c8bc -> emacs-geiser/chez@605a81ff7b
emacs-geiser/geiser@e54d5e6dc6 -> emacs-geiser/geiser@49d12a1448
emacs-geiser/guile@24ce15de23 -> emacs-geiser/guile@ee33af6b4e
flatwhatson/flycheck-guile@e23a4d7813 -> flatwhatson/flycheck-guile@dd7bbdc48f
flatwhatson/scheme-mode@aaef1f88cc -> flatwhatson/scheme-mode@51e586e5f1

- Lazy autoloads hack for geiser is no longer needed (see
  47bb86d682)
- (#7472) Fixes geiser-activate-implementation errors from `doom doctor`

Fix: #7472
Ref: 47bb86d682
2023-11-29 13:41:23 -05:00
Tim Ruffing
f4e02a2d39 fix(org): don't call org-reveal in dead buffer
This fixes a bug introduced in bb3431a (#7509). This shows up for
example in `org-capture`, which uses multiple org buffers and the
initial one (with name `*Capture*`) will be dead already by the time the
timer runs.

Amend: #7509
2023-11-29 11:30:20 -05:00
Colin Woodbury
e5cbe36fd7
bump: :tools tree-sitter
emacs-tree-sitter/tree-sitter-langs@3a3ad0527d -> emacs-tree-sitter/tree-sitter-langs@5eb24557f5

Fixes broken syntax highlighting in Clojure buffers.
2023-11-29 11:30:04 -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
Maoli
c2818bcfaa fix(latex): avoid stealing focus after compilation
Current LaTeX module uses `TeX-command-run-all` for compilation, which
by default opens the compiled document in a viewer. This behavior causes
a loss of focus from the Emacs window. We address this by adding a
custom compilation function.
2023-11-27 21:35:55 -05:00
Henrik Lissner
3cdf67ccce
merge: pull request #7549 from John-Goff/master 2023-11-27 21:09:49 -05:00
Patrick Norton
9c3d1951e3
fix(swift): don't load lsp-sourcekit with eglot
The `use-package!` declaration for lsp-sourcekit in `config.el` did not
match the `package!` declaration in `packages.el`: this resulted in
`lsp-sourcekit` being loaded but never installed. The removal of this
package also resulted in there no longer being a proper LSP client with
eglot--this has also been fixed.
2023-11-27 21:08:36 -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
Maoli
95e3491c3b bump: :completion company
sebastiencs/company-box@766546b266 -> sebastiencs/company-box@b6f53e26ad
company-mode/company-mode@2ca3e29abf -> company-mode/company-mode@9b21604d19

Fix: doomemacs/doomemacs#6710
2023-11-26 13:57:36 -05:00
Ellis Kenyo
fbf7e86b8e docs(clojure): clarify optional deps & add enrich-classpath note 2023-11-25 23:04:53 -05:00
Ellis Kenyo
45f86d9459 bump: :lang clojure
babashka/neil@1dbac785ce -> babashka/neil@40993873bb
clojure-emacs/cider@1ed5163433 -> clojure-emacs/cider@120fd885d3
clojure-emacs/clj-refactor.el@b5abe655e5 -> clojure-emacs/clj-refactor.el@0a2a6cbc2e
clojure-emacs/clojure-mode@3453cd229b -> clojure-emacs/clojure-mode@25d713a67d
clojure-emacs/parseclj@4d0e780e00 -> clojure-emacs/parseclj@74ff7d63fe
clojure-emacs/parseedn@a09686fbb9 -> clojure-emacs/parseedn@c8f07926a6
ericdallo/jet.el@f007660c56 -> ericdallo/jet.el@7d5157aac6

Closes #7515
2023-11-25 23:04:53 -05:00
Alfonso Fernando Álvarez
6a12331f87 docs(terraform): mention +lsp flag 2023-11-24 18:39:01 -05:00
Nikita Bloshchanevich
7d5ceff5ec fix(plantuml): flycheck: executable support
The flycheck-plantuml is by default configured to always run plantuml
via "java". This only works with a downloaded plantuml. However, I would
prefer to have plantuml installed via my package manager (fedora/dnf).

A locally installed PlantUML executable is already detected by default
for normal use (export/preview), we can also use it for flycheck.

If plantuml is downloaded using plantuml-download-jar, this jar is still
used by default (see setq plantuml-exec-mode), so this should not affect
previous setups.
2023-11-24 11:06:34 -05:00
Jonas Jelten
7fb69fac64
bump: :lang markdown
jrblevin/markdown-mode@c765b73b37 -> jrblevin/markdown-mode@b1a862f016

- The workaround introduced aad7bc521f addressed an issue that was
  fixed upstream (jrblevin/markdown-mode@44f0e89534).

Ref: jrblevin/markdown-mode#578
Revert: aad7bc521f
2023-11-24 11:05:30 -05:00
Eric Lim
52be142e5c docs(rss): add a missing double quote in README 2023-11-24 11:02:28 -05:00
Eric
d9a5b326b8 docs: replace single -> double semicolons 2023-11-24 11:02:07 -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
e133da7435
docs(upload): append slash to ssh-deploy-root-local
Suffix ssh-deploy-root-local's path with a trailing slash (to be
consistent with upstream documentation and the example value for
ssh-deploy-root-remote right below it).

Co-authored-by: visika <visika@users.noreply.github.com>
Ref: #7513
2023-11-24 10:54:36 -05:00
Henrik Lissner
5100ab121d
fix(upload): ssh-deploy-on-explicit-save: incorrect type
According to upstream package emacs-ssh-deploy, the value 0 should
disable the auto-save behavior. As the ssh-deploy-on-explicit-save is
considered true if its value is 0, it triggers the after-save-hook
anyway. This commit fixes the hook so it conforms to upstream
definition:

  ssh-deploy-on-explicit-save Enabled automatic uploads on save (integer)

Co-authored-by: visika <visika@users.noreply.github.com>
Close: #7513
Fix: #7512
2023-11-24 10:51:19 -05:00
Zdeněk 'Vlk' Mžourek
6bea1f6a35 perf(lsp): turn off eglot events buffer
The `eglot-events-buffer-size` setting disables the `eglot-events-buffer`
when 0, enabling more consistent performance on long running emacs
instance.
Default is 2000000 lines. After each new event the events buffer
is pretty printed as a whole, which causes steady performance decrease
over time.
Quite a bit of CPU is spent on pretty priting and Emacs GC is put under
high pressure.
2023-11-24 10:42:42 -05:00
StrawberryTea
dc16fe10e3 feat(eshell): add imenu support 2023-11-24 10:31:35 -05:00