Commit graph

12431 commits

Author SHA1 Message Date
Henrik Lissner
b69e7d1780
tweak(dired): bind gl, h, l, & arrows to directory nav 2024-08-22 21:48:08 -04:00
Henrik Lissner
ad1507ae8d
docs(org): mention Jupyter packages for Arch Linux
Amend: #7502
Amend: ab1d396c2d
2024-08-22 20:25:37 -04:00
Henrik Lissner
1e358caea1
bump: ob-clojure-literate
https://repo.or.cz/ob-clojure-literate.el.git@18c3ea15b872 -> emacsattic/ob-clojure-literate@18c3ea15b8

Use emacsattic/ob-clojure-literate on Github (a more stable host).

Fix: #7586
2024-08-22 20:16:23 -04:00
Henrik Lissner
d4357c173a
fix(lsp): void-variable lsp-client-packages error
Regression introduced in 32d9369, due to evaluating this snippet too
early (before lsp-mode was loaded).

Amend: 32d9369091
Fix: #7713
2024-08-22 16:08:45 -04:00
Henrik Lissner
93c5f98ee2
fix(vc-gutter): resist errors in kill-buffer advice
A regression introduced in aa8c31c.

Fix: #8018
Ref: #8009
Amend: aa8c31cf08
2024-08-22 16:06:42 -04:00
Henrik Lissner
b521492bf4
fix(default): feature-gate deft keybinds
Close: #7935
Co-authored-by: edmundmiller <edmundmiller@users.noreply.github.com>
2024-08-22 15:50:34 -04:00
Henrik Lissner
32d9369091
fix(lsp): disable lsp-terraform
This issue seems to come up a lot, and I've been unable to reproduce it,
but at the very least I can disable the lsp-terraform client for folks
that don't need it.

Fix: #7713
Ref: emacs-lsp/lsp-mode#3577
2024-08-22 15:50:34 -04:00
Henrik Lissner
e59023b843
fix(vc-gutter): toggle diff-hl-margin-mode in tty frames
Fix: #8001
2024-08-22 15:50:34 -04:00
Henrik Lissner
d309dcad27
fix(plantuml): {org-,}plantuml-jar-path resolution
- Ensures `org-plantuml-jar-path` is less likely to be overwritten if the
  user changes it.
- Sets `org-plantuml-jar-path` and `plantuml-default-exec-mode` after
  calling `plantuml-download-jar`, so things Just Work™️ without
  needing the user to know to update these variables.

Close: #7992
2024-08-22 15:50:34 -04:00
pancho horrillo
9ebd9cb734 fix(go): remove bind to deprecated function
‘go-remove-unused-imports’ is an obsolete command (as of 1.7.0); set
‘gofmt-command’ to goimports instead, or use LSP and gopls’s "Organize
Imports" code action.

Ref: dominikh/go-mode.el@166dfb1e09
2024-08-22 15:02:16 -04:00
Henrik Lissner
0d363045c5
tweak(dart): open flutter output in popup
Close: #8015
Co-authored-by: AlessandroW <AlessandroW@users.noreply.github.com>
2024-08-22 12:32:14 -04:00
Henrik Lissner
804da58540
fix(format): disable on-save for LaTeX-mode
Since latex-mode != LaTeX-mode.
2024-08-22 12:32:14 -04:00
Henrik Lissner
1e73754dad
refactor(dired): dirvish-hide-cursor
Give the same treatment I give dirvish-hide-details to
dirvish-hide-cursor (see ddfb0cc).

Ref: ddfb0cc3cc
Ref: #6760
2024-08-22 12:32:14 -04:00
Henrik Lissner
1b336d0549
bump: forge
magit/forge@1e7ee99c7f -> magit/forge@30f181f785

- Same issue with forge as with magit (see 5e70fe1).

Fix: #8007
Amend: 5e70fe1697
2024-08-22 12:32:14 -04:00
Henrik Lissner
d941078e66
tweak(ligatures): +ligatures-extra-alist: affect derived modes
Close: #7808
Co-authored-by: Dev380 <Dev380@users.noreply.github.com>
2024-08-22 12:32:14 -04:00
Henrik Lissner
a0c901cca7
fix(format): lsp-mode/eglot formatters
There seems to be context that eglot needs that isn't available in
Apheleia's scratch buffer.

Fix: #7962
2024-08-22 12:32:14 -04:00
pancho horrillo
879c0b06a4 refactor!(go): remove go-guru
BREAKING CHANGE: Removes go-guru from the Go module. It has been
deprecated upstream in favor of gopls, the official Go LSP server.

Close: #7995
Ref: golang/go/issues/65880
Co-authored-by: Henrik Lissner <git@henrik.io>
2024-08-22 12:29:54 -04:00
Vu Quoc Huy
c27387ce76
fix(latex): enable LSP on LaTeX-mode-local-vars-hook too 2024-08-22 12:29:15 -04:00
Chenty
b835e7b6ec
fix(workspaces): don't overwrite previously workspaces on save
Otherwise, each time `+workspace-save` is called, all prior saved
workspaces would be deleted from `+workspaces-data-file` before
inserting the new one.
2024-08-22 12:20:17 -04:00
Henrik Lissner
dbcd30820b
fix(eshell): eshell-did-you-mean: sequencep 771 error
Also removes obsolete hack for eshell-did-you-mean (see
xuchunyang/eshell-did-you-mean#2).

Ref: xuchunyang/eshell-did-you-mean#2
2024-08-21 14:53:23 -04:00
Henrik Lissner
122e3732f7
fix(markdown): disable meta keybinds if evil-disable-insert-state-bindings
While I don't intend to respect `evil-disable-insert-state-bindings`
everywhere, exhaustively (such as org's rebinding of return or tab), I
will do it for non-essential keybinds that have a high likeliness of
overwriting navigation commands (like meta keys).
2024-08-21 13:40:11 -04:00
Henrik Lissner
aa8c31cf08
fix(vc-gutter): wrong-number-of-args error
A regression introduced in ded3f5e.

Fix: #8009
Amend: ded3f5ec83
2024-08-21 12:57:28 -04:00
Henrik Lissner
ff9c59df46
tweak(vc-gutter): disable diff-hl-mode in pdf-view-mode 2024-08-21 05:04:25 -04:00
Henrik Lissner
ded3f5ec83
fix(vc-gutter): runaway diff-hl threads & immortal buffers
This was an elusive bug caused by two upstream behaviors:

1. `kill-buffer` will silently refuse to kill a buffer if there is a
   thread associated with it.
2. `global-diff-hl-mode` activates `diff-hl-mode` in *most* buffers,
   even invisible ones. This calls `diff-hl-update` each time
   it does. This isn't a problem *unless* you have `diff-hl-update-async`
   enabled, because it creates a thread every time `diff-hl-update` is
   called. That means for every buffer -- real or transient -- you have
   a new thread queued.

And this caused two main issues:

1. Temporary buffers are often opened and closed very rapidly (often
   faster than the thread can complete), so they weren't getting cleaned
   up. I hope you weren't too attached to your memory, because you'll
   have a lot of buried buffers to feed before long!
2. In cases where `diff-hl-update` simply takes a long time, multiple
   calls to it would queue more threads. When Emacs eventually yields
   the CPU to them, you'll get random,
   impossible-to-predict-or-track-down freezes. Joy!

This may very well be enough reason to disable `diff-hl-update-async` by
default, but I didn't want to give up on it *just* yet, despite how
inelegant this solution is...

Fix: #7954
Fix: #7991
2024-08-21 05:03:30 -04:00
Henrik Lissner
fe15b1daf3
fix(dired): remove keybind to nonexistent command
Amend: e82dab3257
Co-authored-by: kalwk <kalwk@users.noreply.github.com>
2024-08-21 05:02:43 -04:00
Henrik Lissner
4ed3e75f5f
fix(dired): fail gracefully if pdf-tools isn't installed
Will throw a "void-variable pdf-info-epdfinfo-program" error if
pdf-tools isn't installed (or `:tools pdf` is disabled).
2024-08-21 02:15:40 -04:00
Henrik Lissner
a6c3c6842a
refactor(dired): use dirvish-preview-environment
- Remove +dired--suppress-hooks-in-previews-a, because Dirvish already
  does this.
- Exploit dirvish-preview-environment instead of hardcoding the
  enable-local-variables let-binding for the child process. Its defaults
  are more reasonable.
2024-08-21 02:11:55 -04:00
Henrik Lissner
f3e9920e80
bump: magit
magit/magit@3b37048688 -> magit/magit@2da34f1317

- Whoops. The HEAD of magit's melpa branch is auto-generated and rebased
  to the front, so pinning to its HEAD will always eventually break.

Fix: #8007
Amend: 5e70fe1697
2024-08-21 00:18:06 -04:00
Henrik Lissner
c78e49e862
tweak(corfu): corfu-auto-delay = 0.24
Increase the delay slightly, to stave off slowness with slower backends.
2024-08-20 21:49:41 -04:00
Henrik Lissner
5e70fe1697
bump: :tools magit
magit/forge@a56eb3cbb2 -> magit/forge@1e7ee99c7f
magit/magit@cf94190410 -> magit/magit@3b37048688

Due to a force push upstream, the magit ref we were pinned to no longer
worked, prompting this bump.

Fix: #8007
2024-08-20 21:43:03 -04:00
Henrik Lissner
41dab49c17
fix(biblio): s/+roam/+roam2
This change accidentally snuck into 109aa2c.

Fix: #8008
Amend: 109aa2c159
2024-08-20 21:42:17 -04:00
Henrik Lissner
c1c3b521d6
bump: :editor evil
emacs-evil/evil-collection@e49d8e96cc -> emacs-evil/evil-collection@772571fc67
emacs-evil/evil@30ebe6df27 -> emacs-evil/evil@5db0bdc7dc
2024-08-20 18:07:42 -04:00
Henrik Lissner
d1e5a285fe
fix(vc): git-timemachine: enable font-lock-mode 2024-08-20 16:44:23 -04:00
Henrik Lissner
abf19aa63e
tweak(format): +format/region: emit message on success 2024-08-20 16:36:22 -04:00
Henrik Lissner
67e5dda526
fix(format): void-function +javascript-npm-conf error
Amend: c0a1b9efc9
Close: #8005
2024-08-20 16:27:34 -04:00
Henrik Lissner
bf330b405d
refactor(ligatures): use (featurep 'harfbuzz)
Doom adds this feature in lisp/doom.el.
2024-08-20 00:09:55 -04:00
Henrik Lissner
0ce403d069
refactor(ligatures): set-font-ligatures!: unsetting multiple modes
This changes set-font-ligature such that unsetting multiple modes will
properly manipulate multi-mode entries in ligature-composition-table.
2024-08-20 00:03:50 -04:00
Henrik Lissner
ef142fc913
refactor(ligatures): defer ligature.el & combine variables
This combines `+ligatures-prog-mode-list` and `+ligatures-all-mode-list`
into `+ligatures-alist` (and deprecates the former).
2024-08-20 00:03:50 -04:00
Henrik Lissner
dff6c36ab5
docs(ligatures): use set-font-ligatures! 2024-08-20 00:03:49 -04:00
Henrik Lissner
6e8f581897
feat(default): add SPC t d toggle for diff-hl-mode 2024-08-19 16:29:00 -04:00
Henrik Lissner
0893edefae
refactor!(magit): remove magit-todos
BREAKING CHANGE: Removes magit-todos from the magit module. I've always
thought my choice to include it as a 'reasonable default' in this module
was a bit dubious. Given how trivial the config is, I leave it to users
to install if they want it, instead.
2024-08-19 16:21:45 -04:00
Henrik Lissner
1c6288e2b7
perf(dired): suppress mode hooks when previewing files
Ref: #6760
2024-08-19 16:21:45 -04:00
Henrik Lissner
22f37e84dc
bump: :emacs
emacs-straight/undo-tree@5e9f4c9234 -> emacs-straight/undo-tree@d8f72bbe7d
emacs-straight/vundo@a18d63a9a1 -> emacs-straight/vundo@5374125dc0
ideasman42/emacs-undo-fu-session@75d78310c8 -> ideasman42/emacs-undo-fu-session@beb0e285d0
ideasman42/emacs-undo-fu@ea902716f3 -> ideasman42/emacs-undo-fu@dbb3e4b699
magit/git-modes@d96fa7a3c7 -> magit/git-modes@f99010bbeb
magit/magit@e777822720 -> magit/magit@55656a31cc
2024-08-19 16:21:45 -04:00
Henrik Lissner
109aa2c159
bump: :tools
Silex/docker.el@d5255a65b7 -> Silex/docker.el@f3adbf49e1
alphapapa/magit-todos@501c8db90a -> alphapapa/magit-todos@501c8db90a
andras-simonyi/citeproc-el@cfa30b6c95 -> andras-simonyi/citeproc-el@54184baaff
doomelpa/code-review@e4c34fa284 -> doomelpa/code-review@e4c34fa284
editorconfig/editorconfig-emacs@1651294334 -> editorconfig/editorconfig-emacs@648f0cf9ae
emacs-citar/citar@07d2a63c99 -> emacs-citar/citar@07d2a63c99
emacs-lsp/dap-mode@b407773ebc -> emacs-lsp/dap-mode@496dd3a60f
emacs-lsp/lsp-mode@5298775517 -> emacs-lsp/lsp-mode@12befaabe4
emacs-lsp/lsp-ui@00f1fecdfb -> emacs-lsp/lsp-ui@072bb29152
emacs-straight/crdt@9bf99e2ce3 -> emacs-straight/crdt@7f91efcc72
emacs-straight/eglot@8008255edd -> emacs-straight/eglot@3a5240d8fd
emacs-tree-sitter/tree-sitter-langs@b2739d07fa -> emacs-tree-sitter/tree-sitter-langs@1c3d95d018
hcl-emacs/terraform-mode@a645c32a8f -> hcl-emacs/terraform-mode@abfc10f5e3
jacktasia/dumb-jump@3c2ab8dfff -> jacktasia/dumb-jump@cd65a74337
magit/forge@21d410c810 -> magit/forge@a56eb3cbb2
magit/magit@e777822720 -> magit/magit@cf94190410
nicolaisingh/saveplace-pdf-view@ee95460cd9 -> nicolaisingh/saveplace-pdf-view@70e9ec4056
purcell/envrc@2316e004c1 -> purcell/envrc@532ecdab48
tumashu/posframe@f4e9e509ba -> tumashu/posframe@493b17f74a
2024-08-19 16:21:45 -04:00
Henrik Lissner
50adaa9e48
fix(format): prettier-*: 'void-variable unless' error
Also short-circuits the condition with
apheleia-formatters-respect-indent-level, if it's been disabled.

Amend: c0a1b9efc9
Ref: #7998
2024-08-19 16:21:08 -04:00
Henrik Lissner
ddfb0cc3cc
refactor(dired): dirvish-hide-details
Prior to this, I used window-width to determine whether file details
should be hidden, but there was a jarring delay on `dirvish-setup-hook`
that made the effect look awful (especially when walking up and down
file trees).

This changes `dirvish-hide-details` to accept a list of contexts where
it should be enabled, which I think is more elegant. Of course,
`dirvish-hide-details` will fall back on old behavior if set to `t` or
`nil`.

I'll consider upstreaming it later (and perhaps doing similar for
`dirvish-hide-cursor`).

Ref: #6760
2024-08-19 02:15:05 -04:00
Henrik Lissner
d4ad14b75d
fix(dired): fallback to default if dirvish-use-mode-line == nil
Currently, setting `dirvish-use-mode-line` to nil blanks out the
mode-line, and setting it to `t` makes Dirvish use its own mode-line. To
get the default mode-line, `dirvish-mode-line-format` needs to be set to
nil, but even then Dirvish will prepend a bar to the default-mode-line
so it can control its height, which I think is a confusing chain of
causes and effects.

This changes the behavior such that `dirvish-use-mode-line` controls
whether `dirvish-mode-line-format` will be used or not. I'll upstream
this to hlissner/dirvish later.

Fix: #8000
2024-08-18 16:31:21 -04:00
Henrik Lissner
967586fcae
fix(dired): dirvish-{mode,header}-line-height = doom-modeline-height
Ref: #8000
2024-08-18 16:20:20 -04:00
Henrik Lissner
c0a1b9efc9
fix(format): prettier: don't override prettier indent config
Apheleia's default config for prettier adds --use-tabs/--tab-width to
force prettier to match Emacs' indent settings, which is fine until a
prettier config file tries to overwrite it and is ignored. As a
compromise (and stopgap solution), I omit these flags if any prettier
settings are set in the current project.

Fix: #7998
2024-08-18 03:59:18 -04:00
Henrik Lissner
e82dab3257
refactor!(dired): use dirvish, drop +ranger
BREAKING CHANGE: This drops the Dired module's +ranger flag and replaces
much of this module's innards with (my maintained fork of) Dirvish,
which provides a spiritually similar (if not superior) experience to
Ranger. Plus, Dirvish makes most of our dired plugins unnecessary.

Also, I am now registering myself as this module's maintainer now that I
dogfood and maintain Dirvish.

Close: #6760
Co-authored-by: alexluigit <alexluigit@users.noreply.github.com>
Co-authored-by: hpfr <hpfr@users.noreply.github.com>
Co-authored-by: LemonBreezes <LemonBreezes@users.noreply.github.com>
Co-authored-by: pharcosyle <pharcosyle@users.noreply.github.com>
2024-08-18 03:57:12 -04:00