Commit graph

12362 commits

Author SHA1 Message Date
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
Henrik Lissner
e4b1ed5a6a
refactor(eshell): eshell-prompt-regexp
This new default makes eshell-prompt-regexp's consumers a little less
susceptible to false positives in garbage/process output and a little
more resistant to user changes to eshell-prompt-function. It's also
closer to its default value (KISS).
2023-11-24 10:29:29 -05:00
Henrik Lissner
fba1d4005e
bump: :tools tree-sitter
emacs-tree-sitter/tree-sitter-langs@2f0f97abbd -> emacs-tree-sitter/tree-sitter-langs@3a3ad0527d
meain/evil-textobj-tree-sitter@19979843f5 -> meain/evil-textobj-tree-sitter@9a9edd42a2

Close: #7560
Co-authored-by: l2dy <l2dy@users.noreply.github.com>
2023-11-24 10:01:45 -05:00
Henrik Lissner
cb3d01920c
bump: :tools debugger lsp
emacs-lsp/dap-mode@096070aacf -> emacs-lsp/dap-mode@755845ae05
emacs-lsp/lsp-mode@266945b3e4 -> emacs-lsp/lsp-mode@d441f3d268
emacs-straight/eglot@8ccec6532e -> emacs-straight/eglot@2b145778ba
realgud/realgud@220ce2c348 -> realgud/realgud@365063ea8c

Fix: #7540
2023-11-23 22:05:33 -05:00
Leo Okawa Ericson
31b2ad22fb
fix(org): call org-reveal in correct buffer
Sometimes, `org-reveal` is called in the wrong buffer which throws an
error.  For example, `org-link-open-from-string` creates an temporary
org-mode buffer that gets killed very quickly which means that
`org-reveal` gets called in a different buffer.  I have also had issues
with org-reveal getting called in the org-roam buffer, which is why this
commit also saves the buffer it was called in.

Co-authored-by: Leo Okawa Ericson <git@relevant-information.com>
2023-11-23 21:21:08 -05:00
Kiana Sheibani
c3b228fedd fix(treemacs): do not overwrite git mode when treemacs-python-executable is set 2023-11-23 21:19:26 -05:00
Henrik Lissner
13fa55da82
bump: :lang java
Groovy-Emacs-Modes/groovy-emacs-modes@c612ac1e9f -> Groovy-Emacs-Modes/groovy-emacs-modes@7b8520b2e2
emacs-lsp/lsp-java@dbe448a886 -> emacs-lsp/lsp-java@449673da72
mopemope/meghanada-emacs@59c46cabb7 -> mopemope/meghanada-emacs@fb29746e44

Co-authored-by: aveseli <aveseli@users.noreply.github.com>
Close: #7554
2023-11-23 18:32:35 -05:00
Henrik Lissner
9be60fba43
bump: :lang scala
emacs-lsp/lsp-metals@a2df7263ec -> emacs-lsp/lsp-metals@da7e54ed65

- (#7475) lsp-metals moved on from treemacs-extensions (obsolete) to
  treemacs-treelib.

Co-authored-by: prashantvithani <prashantvithani@users.noreply.github.com>
Close: #7475
2023-11-23 18:32:35 -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
Chromium
a00f03079a
bump: :app rss
remyhonig/elfeed-org@7f3ad868f2 -> remyhonig/elfeed-org@fe59a96969 

- fix elfeed-org-export-opml error
- perf: use temporary buffers instead of find-file
- replace outline-on-heading-p with org-at-heading-p
- fix typo in last changes

Ref: remyhonig/elfeed-org#88
2023-11-23 18:32:04 -05:00
Zardoz
574cd32147
tweak(doom-quit): make quit message OS-sensitive 2023-11-23 17:55:13 -05:00
LemonBreezes
a180579d6f
bump: :term eshell
Ambrevar/emacs-fish-completion@1038488181 -> Ambrevar/emacs-fish-completion@df42e15308
akreisher/eshell-syntax-highlighting@8bf0494ca7 -> akreisher/eshell-syntax-highlighting@4ac27eec6595# Please enter the commit message for your changes. Lines starting

- (#7529) Fix elisp code-completion in Eshell.

Close: #7529
2023-11-23 17:29:37 -05:00
StrawberryTea
f2562bbb4a feat(corfu): always configure dabbrev & line 2023-11-06 14:50:07 -06:00
StrawberryTea
46ce67aa6d fix(corfu): move orderless config earlier 2023-11-06 14:48:33 -06:00
Luigi Sartor Piucco
a16e544c7a
bump: :completion corfu 2023-10-31 21:54:50 -03:00
Luigi Sartor Piucco
fc15f169da
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`
2023-10-31 21:50:14 -03:00
Luigi Sartor Piucco
3d41c07370
tweak(corfu): expand autoload command triggers 2023-10-31 21:50:14 -03:00
Luigi Sartor Piucco
7a4d8572f7
tweak(corfu): place extra CAPFs behind flags 2023-10-31 21:50:10 -03:00
Luigi Sartor Piucco
241b8896da
fix(corfu): improve keybinding config 2023-10-30 21:38:49 -03:00
StrawberryTea
50bdf024ad
feat(corfu): more CAPFs and ergonomy changes
Add various CAPFs from cape:
- `cape-line`;
- `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 `backspace` for `+tng`;
- Smart `DEL` for `+tng`;
- Smart `SPC` which quits if after separator;
- Smart `RET`;
Add depth to CAPFs, allowing ordering to be adjustable.
Remove the `+corfu-completion-styles` mechanism.
Add `,` as additional separator.
Enable in minibuffer.
Bump `cape`.
2023-10-30 16:07:43 -03:00
Luigi Sartor Piucco
61c73c9def
feat(corfu): switch to nerd-icons-corfu
This removes the need to vendor the icon code.
2023-10-15 15:41:37 -03:00
Luigi Sartor Piucco
5c1e1978d5
tweak(corfu): quit corfu on evil quit 2023-10-15 15:41:37 -03:00
Luigi Sartor Piucco
61c3b74231
tweak(corfu): use better binding instead of S- 2023-10-15 15:41:37 -03:00
Liam Hupfer
4d118ff01e
tweak(corfu): allow corfu-history without savehist
savehist is for persisting history across sessions, but users who
disable savehist can still benefit from session-length Corfu history.
2023-10-15 15:41:37 -03:00
Liam Hupfer
2d62db15c4
perf(corfu): improve lazy loading
`:after y` eagerly loads package x after y loads. Cape and
`yasnippet-capf` define autoloads, so we can defer them until a capf is
actually called.
2023-10-15 15:41:37 -03:00
Luigi Sartor Piucco
bc00a49475
docs(corfu): simplify and show how to add capfs 2023-10-15 15:41:37 -03:00
Luigi Sartor Piucco
787d040ba6
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-10-15 15:41:37 -03:00
Luigi Sartor Piucco
85f4c58a3c
fix(corfu): pin packages 2023-10-15 15:41:34 -03:00
Jeetaditya Chatterjee
a7b810a93f
fix(emacs-lisp): lexical argument, error popup
this was caused by the use of fn! and an argument which interacted badly
with doom snippets of all things.
2023-10-15 19:33:07 +01:00
Luigi Sartor Piucco
5e542af186
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-10-15 15:00:40 -03:00
Liam Hupfer
4499ce7b0a refactor: doom-unicode-font -> doom-symbol-font
No font supports all of Unicode or anywhere near it. It’s not even
really possible with current font formats. Therefore, rename
`doom-unicode-font` to `doom-symbol-font`. Only set it as a fallback for
characters in the `symbol` and `mathematical` scripts.
2023-10-07 02:33:45 +02:00
How Si Wei
c4bb95e073 fix(popup): change evil function to call following upstream rename 2023-10-06 22:38:35 +02:00
Sean Farley
5df41be02b nit(mu4e): remove underline for blank space
Previously, this was a bit confusing and didn't look quite right.
Instead, just pad the space in the temp buffer instead of fontifying it
into a button.
2023-10-06 22:37:43 +02:00
Sean Farley
ce8c2af08c fix(mu4e): set popup rules for mu4e
I'm not sure how this works for anyone without setting these rules. By
setting them here, users will have a good out-of-box experience of using
mu4e.
2023-10-06 22:37:43 +02:00
Sean Farley
feec9368e2 feat(mu4e): set consistent icons for `mu4e-modeline-*' variables
These are new variables in mu4e so let's go ahead and set them to match
doom's style for email icons.
2023-10-06 22:37:43 +02:00
Sean Farley
b40e435f53 feat(mu4e): add space-right argument to `+mu4e-normalised-icon'
This allows a tiny (but equal) amount of space to the right of the icon.
In the next patch, we'll use this for some icons in the modeline.
2023-10-06 22:37:43 +02:00
Sean Farley
9f922065ba refactor(mu4e): prepare `+mu4e-normalised-icon' for extra padding
This is non-functional change to use `format' instead of `concat'. It
will make the next patch easier to read.
2023-10-06 22:37:43 +02:00
Sean Farley
10567b6cec nit(mu4e): :height parameter was already the default value
No need to send it since it's the default value.
2023-10-06 22:37:43 +02:00
arnfaldur
bd9aef928c
fix(rust): make cargo popups consistent
When invoking `rustic-cargo-run` a buffer called `*cargo-run*` is
opened. This adds a rule such that this buffer opens in a popup window
that is the same as the popup windows for other rustic cargo commands.

Ref: #2623
2023-10-06 22:36:59 +02:00
roife
1a2789c922
fix(workspaces): check before loading tab configuration
Fix: #7139
2023-10-05 17:46:46 +02:00
terru
da99d39e4d
docs(nix): mention +lsp flag
Ref: #6592
2023-10-05 17:45:50 +02:00
Liam Hupfer
1e1e6150d8 fix(data): correct XML closing tag insertion
`nxml-slash-auto-complete-flag` inserts the rest of the closing tag when
`</` is inserted, but smartparens also defines `(sp-local-pair "<" ">")`
for `sp--html-modes`, so two `>` are inserted for closing tags. Apply
the upstream developer’s suggested fix.

Fix: https://github.com/doomemacs/doomemacs/issues/6331
Ref: https://github.com/Fuco1/smartparens/issues/397
2023-10-05 17:43:19 +02:00
Liam Hupfer
2497d58e9a fix(vertico): ensure recentf-mode for consult-buffer
`consult-buffer` uses `recentf` to populate file candidates. It is not
uncommon to use `consult-buffer` as a single entry point to buffers,
bookmarks and recent files, effectively replacing `recentf` and
`consult-recent-file`.

To improve startup performance, Doom enables `recentf-mode` after the
first file is opened (0e851ace9b). When executing `consult-buffer` at
startup, `recentf-mode` won’t be enabled yet. Add it to the
`consult-recent-file` advice to ensure that can’t happen.

Unlike `consult-recent-file`, `consult-buffer` does have significant
functionality without `recentf-mode`, but for the tiny fraction of Doom
users that disable `recentf-mode`, this is easy enough to
`advice-remove`.

Fix: https://github.com/doomemacs/doomemacs/issues/7461
2023-10-05 17:42:55 +02:00
Pieter-Jan Vandenbussche
8eebab4f97 fix(ocaml): add dune-project to ocaml projectile root files 2023-10-05 17:42:24 +02:00
Vitaly Slobodin
844a82c4a0 bump: :lang ruby
pd/yard-mode.el@ef3426ff55 -> pd/yard-mode.el@de1701753a
nonsequitur/inf-ruby@6f1df882ab -> nonsequitur/inf-ruby@03475ac1cc
dgutov/robe@b9d5ab549f -> dgutov/robe@912ae2ba1f
pezra/rspec-mode@62853a428b -> pezra/rspec-mode@29df3d081c
2023-09-22 23:18:31 +02:00
mosquito-magnet
db29f71f10 fix(org): add missing autoloads for org-attach
org-attach-delete-one and -all are bound to keys, thus requiring
autoload.
2023-09-22 23:17:43 +02:00
Henrik Lissner
3983fba5b5
perf(zig): quote flycheck-define-checker
Eager expansion of the flycheck-define-checker macro causes flycheck to
be unavoidably eager-loaded at startup, regardless of other deferral
techniques, slowing down startup considerably, as it pulls in a number
of associated packages/config with it.
2023-09-20 21:01:55 +02: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
1baea0c4c2
feat(beancount): add +beancount/occur command
Inspired by org-occur (or org-sparse-tree): hides all
transactions/directives in the buffer that don't involve a selected
account.
2023-09-20 20:24:00 +02:00