Commit Graph

4667 Commits

Author SHA1 Message Date
Henrik Lissner
617d8411e6 fix(tree-sitter): ignore major-mode-remap-defaults for ts modes
...registered with `set-tree-sitter!`. Then we don't have to chase after
packages inconsistently modifying `major-mode-remap-defaults`.
2025-06-28 19:32:27 +02:00
Henrik Lissner
22e03d7e90 fix(elixir): duplicate auto-mode-alist entries
Due to copypasta typo.

Amend: 0c311a5172
2025-06-28 17:40:18 +02:00
Tim Ruffing
57fcd95e7d tweak(latex): don't insert braces after sub/superscript
This avoids inserting braces when you type "a_", so you end up typing
"a_i" instead of "a_{i}".

The official LaTeX manual says that braces are correct, but it doesn't
matter for many cases, e.g., when the sub/superscript is just a single
token like "i". It's simply a matter of taste in these cases.
 - Frank Mittelbach, a LaTeX maintainer, says that he types "a_i":
   https://tex.stackexchange.com/questions/82329/how-bad-for-tex-is-omitting-braces-even-if-the-result-is-the-same#comment176261_82331
 - David Carlisle, another LaTeX maintainer, says that a_i "arguably
   improves the look of the source code":
   https://tex.stackexchange.com/a/82337
 - Joseph Wright, yet another LaTeX maintainer, says that he "would
   always use braces here, so favour a_{i}":
   https://tex.stackexchange.com/a/1929

And I think if it is a matter of taste, then the sane default is to
avoid any magic that gets in the way of users. Anyone who prefers braces
can still enable this argument, but people who do not like them won't
get upset every time they type "_" or "^".
2025-06-26 02:37:18 +02:00
Henrik Lissner
f64e199517 bump: :lang org
bastibe/org-journal@e581bf5530 -> bastibe/org-journal@c72d7c75f8
emacs-straight/org-mode@79781bac69 -> emacs-straight/org-mode@4e6d38d1a6
magit/orgit-forge@764820769e -> magit/orgit-forge@050590fbc7
magit/orgit@efd98e5caa -> magit/orgit@224350397d
minad/org-modern@6158d3d007 -> minad/org-modern@1723689710
oer/org-re-reveal@89ed240450 -> oer/org-re-reveal@da7e1feba9
org-roam/org-roam@046822b512 -> org-roam/org-roam@c172951345
2025-06-25 17:36:59 +02:00
Henrik Lissner
a4d00445d2 tweak(markdown): markdown-mouse-follow-link = nil 2025-06-25 17:36:59 +02:00
Theia Ware
e6c7553053 feat(emacs-lisp): reduce flycheck in org-edit-special buffers
Minimize the flycheck rules when using org-mode's edit functionality for
source code blocks (e.g. `#+begin_src emacs-lisp / #+end_src`) that pops
up a new buffer with the minor mode `'org-src-mode`.
2025-06-14 12:01:29 +02:00
Henrik Lissner
7280e44dc5 fix(beancount): link completion
Due to not escaping the literal ^ in the regexp.

Fix: #8414
Amend: d3e8ca8d9d
2025-06-10 21:28:52 +02:00
fdeitylink
24aec7cd2b fix(coq): void-function company-coq 2025-06-01 00:44:13 +02:00
Henrik Lissner
96ac6b0037 fix(beancount): completion edge cases
Like when `+beancount/clone-transaction` is invoked from an org-capture
template.
2025-05-30 20:54:27 +02:00
Henrik Lissner
4d685029f9 perf(beancount): speed up flymake checker advice 2025-05-29 20:36:07 +02:00
Henrik Lissner
8667b181fc feat(beancount): add account completion on budget directives 2025-05-27 20:41:57 +02:00
Henrik Lissner
0199727de5 fix(beancount): relax prefix on virtual lines
Before, virtual includes were only followed if preceded by three
semicolons. Only one should do.
2025-05-24 20:09:19 +02:00
Henrik Lissner
8406c1ff22 feat(beancount): highlight custom directives
Doesn't seem to be done by beancount-mode, so...
2025-05-24 17:32:27 +02:00
Henrik Lissner
5026de65bb refactor(beancount): don't complete commodities from prices
Auto-generates price files are a common feature among beancount users;
scanning them is a lot of unnecessary work when just reading commodity
directives (and operating_currency options) should be more than enough.

Amend: 5df769e994
2025-05-24 17:31:41 +02:00
Henrik Lissner
5b37bfee23 feat(nix): add treesit support 2025-05-24 17:27:30 +02:00
Henrik Lissner
9acc5f48b6 feat(zig): add treesit support 2025-05-24 17:27:11 +02:00
Henrik Lissner
cfea950e60 fix(beancount): hangs when completion cache is empty 2025-05-22 21:17:12 +02:00
Henrik Lissner
5df769e994 feat(beancount): add commodity/currency completion
Was supposed to be part of d3e8ca8. Now completes commodities/currencies
from declared commidities, operating_currency options, or price
directives. Currently only works in postings, but can be later extended
to complete in price directives and operating_currency options.

Amend: d3e8ca8d9d
2025-05-22 21:15:57 +02:00
Henrik Lissner
7af7280f9e feat(json): add treesit support 2025-05-22 19:53:10 +02:00
Henrik Lissner
f5a1af4bf6 feat(kotlin): add treesit support 2025-05-22 19:50:29 +02:00
Henrik Lissner
c5dd2847ff feat(scala): add treesit support 2025-05-22 19:50:29 +02:00
Henrik Lissner
0c311a5172 feat(elixir): add treesit support 2025-05-22 18:32:03 +02:00
Henrik Lissner
7f8b24d1b8 fix(beancount): enhance +beancount/clone-{,this-}transaction
- `+beancount/clone-transaction` now completes for all transactions
  across this and any included files (depending on the value of
  `+beancount-files`).
- Handles an edge case where `+beancount/clone-this-transaction` would
  try and fail to clone a transaction at point where there wasn't any.
2025-05-22 16:39:20 +02:00
Henrik Lissner
d3e8ca8d9d feat(beancount): enhance completion across the board
Enhances completion for beancount-mode in the following ways:

1. Adds completion for:
   - Event directives and values,
   - The payee field in transactions,
   - Currencies and commodities,
2. Fixes completion for #tag and ^links not working at the end of a
   transaction's heading.
3. Completion now scans not only the current file, but any included
   files (recursively) for candidates if `+beancount-files' is set to
   `auto`. It can otherwise be set to a list of static files or set to
   `nil` (reverts to only scanning the current buffer). This applies not
   only to completion-at-point functions, but also interactive commands
   like `beancount-insert-account'.

This is all very rudimentary and needs polish!
2025-05-22 16:33:23 +02:00
Henrik Lissner
a02871ba83 feat(beancount): support lines only read by linter
Adds support for meta lines that only the flymake linter will see.
These are lines prefixed by any number of semicolons followed by a hash
then space. E.g.

;# include "../config.beancount"
;# 2025-01-01 pad Assets:Bank Equity:Opening-Balances

This is useful for silencing the linter in multi-file beancount projects
rather than suffer the usual deluge of multiple-include errors and
redundancies.
2025-05-22 16:33:23 +02:00
Henrik Lissner
8627117d63 feat(beancount): activate on *.bean files too 2025-05-22 16:33:23 +02:00
Henrik Lissner
b173fedaff refactor(beancount): move autoloads to sub-directory 2025-05-22 16:33:23 +02:00
Henrik Lissner
57b8d5fd8e fix(beancount): flymake-bean: false positives from relative paths
Beancount tools and Fava recognize relative paths in include and
document directives, and documents options. However, flymake-bean pipes
the buffer's contents to bean-check via /dev/stdin, so paths are
resolved relative to /dev instead of the location of the containing
beancount file, resulting in file errors. This commit expands those
relatives paths before sending the buffer's contents to bean-check to
resolve these false positives.
2025-05-18 00:33:14 +02:00
Henrik Lissner
bda27228eb fix(beancount): linter in narrowed buffers
flymake-bean only sends the visible buffer to bean-check, causing a
cascade of unhelpful linter warnings and errors.
2025-05-18 00:32:49 +02:00
Henrik Lissner
55e97eb78a fix(beancount): +beancount/balance: omit zeroed accounts 2025-05-16 10:55:47 +02:00
Henrik Lissner
776da0dcf1 fix(csharp): csharp-ts-mode: side-effects on auto-mode-alist
Would otherwise be imposed every time the mode is activated.
2025-05-16 08:46:21 +02:00
Henrik Lissner
2556cb58f2 feat(yaml): add treesit support 2025-05-15 18:55:42 +02:00
Henrik Lissner
8931c48913 fix(cc): treesit modes not remapped to
c-ts-mode and c++-ts-mode weren't being remapped to from c-mode/c++-mode
because of extra noise in `major-mode-remap-defaults`. I wish these
packages would leave these variables alone and leave it to the user to
configure; they're often inconsistent and overbearing.
2025-05-15 18:31:55 +02:00
Henrik Lissner
5be0df24d3 docs(csharp,julia,lua,markdown): mention +tree-sitter requirements 2025-05-15 18:19:32 +02:00
Henrik Lissner
9073b24878 feat(php): add treesit support 2025-05-15 18:19:32 +02:00
Henrik Lissner
e0e2c3aa61 feat(janet): add treesit support 2025-05-15 18:19:24 +02:00
Henrik Lissner
621ea4d56c refactor(hy): remove redundant mode/interpreter entries
These are set by the package's autoloads.
2025-05-15 17:47:27 +02:00
Henrik Lissner
1670ce2767 feat!(cc): add treesit support
BREAKING CHANGE: Besides treesit support, this removes a few
fontification enhancements (in favor of tree-sitter).
2025-05-15 13:01:40 +02:00
Henrik Lissner
c403bb5e2f feat(csharp): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
46b87362f7 feat(julia): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
e6caaef9e6 fix(agda): remove defunct tree-sitter.el support 2025-05-15 13:01:40 +02:00
Henrik Lissner
f002424106 feat(lua): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
445c982838 feat(ruby): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
7cb23f3359 feat(markdown): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
a372eba7cd feat(python): add treesit support 2025-05-15 13:01:39 +02:00
David Sawatzke
4be8557eb3 docs(cc): Specify -- with command for bear 2025-05-15 09:39:34 +00:00
Henrik Lissner
12f08c9fb8 fix(csharp): s/dotnet-csharpier/csharpier
For both the formatter command and the doctor check.

Fix: #8386
2025-05-11 00:51:27 -04:00
Henrik Lissner
190a389cf8 fix(org): remove [return] keybinds
I'm only trying to override the RET key that evil-org binds, but also
binding these to [return] interferes with "RET" keybinds in various
places, like transient bindings on RET (e.g. gptel).
2025-05-11 00:51:10 -04:00
Henrik Lissner
5477ba4c16 module: add :lang janet 2025-05-08 01:24:14 -04:00
Henrik Lissner
49591fd5a0 tweak(python): init poetry-tracking-mode sooner 2025-05-07 16:35:54 -04:00