90fd64ffab
chore(language/typescript): remove needless hook setup
...
tsx-ts-mode inherits from typescript-ts-mode, so it has the same hooks.
2023-04-25 02:04:19 +01:00
c137dde815
feat(language/lua): improve lsp-mode setup and set tab-width to 2
2023-04-25 02:03:46 +01:00
0308067065
refactor(ui): move transparency related things to a module
2023-04-25 02:00:27 +01:00
db016c1e7d
chore(editor): switch yank-indent from vendored to separate repo version
2023-04-18 02:30:16 +01:00
d0d604bbc7
feat(ai/chatgpt): all per-model API key configuration in shared setup
2023-04-17 01:15:06 +01:00
4f32191983
feat(ai/chatgpt): improvements with a focus on gptel and chatgpt-shell packages
2023-04-16 18:13:58 +01:00
0eedc37603
feat(editor): add custom yank-indent package
...
When yank-indent-mode is enabled, yanked (pasted) text is indented based
on the indent rules of the current major mode. It has a
global-yank-indent-mode too which by default excludes a long list of
known indentation sensitive modes with which this approach does not work
very well.
It is based on some random hacky snippets elisp I've been using for over
a decade. Said snippets are themselves based on some random snippets I
found online, and since morphed into the weird monster they had become.
2023-04-16 03:13:14 +01:00
90d98d7a51
feat(projects/treemacs): enable treemacs-project-follow-mode
2023-04-14 02:05:50 +01:00
5239dacc5e
feat(projects/treemacs): disable lsp-treemacs-sync-mode
...
I prefer being explicit about when something is added to treemacs,
instead of always adding any project that's using a language server.
2023-04-14 02:04:47 +01:00
3da4562bb6
feat(misc/chatgpt): swap out ChatGPT related packages
2023-04-14 02:02:40 +01:00
cad2638c2d
fix(language/typescript): add setup hook to correct major mode
2023-04-14 02:00:18 +01:00
7f618b309c
feat(language/toml): use toml-ts-mode if available
2023-04-14 01:59:49 +01:00
201bb6d394
feat(language/lua): set tab-width to 4
2023-04-14 01:56:25 +01:00
0886d77f32
feat(language/go): enable gotest to pass GOLDEN_UPDATE=1 env var
2023-04-14 01:55:41 +01:00
42ed25d165
feat(language/terraform): use lsp-mode in terraform buffers
2023-04-14 01:54:18 +01:00
e4f9e00262
feat(lsp): disable semantic tokens in Dockerfile and JS files
2023-04-14 01:53:41 +01:00
98c0d16b23
feat(language/conf): handle .tool-versions files with conf-mode
2023-04-14 01:48:09 +01:00
ede5843bd7
feat(formatting): enable prettier-js-mode in toml files
2023-04-14 01:47:43 +01:00
32dae1d558
fix(language/rust): correctly disable lsp-semnatic-tokens-mode
2023-03-09 21:17:21 +00:00
b8b7c7be84
fix(language/go): enable tree-sitter syntax highlighting
2023-03-07 23:37:24 +00:00
d27c0bc67e
fix(language/rust): fix typo in function name
2023-03-07 23:35:03 +00:00
9207050c23
feat(misc/chatgpt): add unofficial package for interacting with ChatGPT
2023-03-07 23:35:03 +00:00
26d300f391
feat(language/markdown): enable whitespace-mode
2023-02-26 17:28:41 +00:00
c3ccf4f51b
feat(completion/copilot): major improvements to accept "mods" concept
2023-02-26 17:25:14 +00:00
76368c26eb
feat(completion/copilot): add .kube/config to exclude list
2023-02-26 17:22:54 +00:00
713ce6843d
feat(lsp): add .devbox to ignored directories
2023-02-26 14:51:37 +00:00
7021114d55
fix(lsp): move misplaced :custom-face definition
2023-02-26 14:49:51 +00:00
41b18aa74c
feat(completion/copilot): add accept completion "mods" concept
...
Essentially, if accepted completion string matches a given regexp
pattern, text can be inserted both before and after point.
This is useful in certain situations where Copilot suggests the opening
line to a if statement, for loop, etc., which leads to unbalanced curly
brackets. This can help reduce the annoyance of unbalanced brackets.
2023-02-22 00:04:16 +00:00
a8e92eb311
feat(language/rust): improve cargo test run commands
...
Take the file path into account when determining what module path to
give to the cargo test command.
2023-02-19 19:42:37 +00:00
0882edb6fe
feat(language/ssh-config): add setup hook for ssh-known-hosts-mode
2023-02-17 22:23:21 +00:00
4babea1fad
feat(language/rust): add custom keybindings for running cargo test
2023-02-17 22:22:41 +00:00
73b1eec11c
feat(language/caddyfile): improve file patterns that are handled by caddyfile-mode
2023-02-17 22:21:59 +00:00
7792cfc965
feat(completion/copilot): improve curly-bracket handling at end of completion
...
Instead of stripping away curly brackets at the end of the completion
texts, simply insert a closing curly bracket after point when accepting
a completion that ends with a curly bracket.
2023-02-17 22:20:34 +00:00
04b8c37dd4
feat(language/dockerfile): use dockerfile-ts-mode if available
...
Otherwise fall back to dockerfile-mode.
This also acts as an experiment of how to go about using the new Emacs
29.x treesit backed modes if available. This is currently not that
clean, but will do for now, and I'll keep experimenting with it.
2023-02-08 22:43:46 +00:00
e138cb3a84
fix(language/sh): only activate tree-sitter in sh and bash scripts
...
The tree-sitter grammars don't work properly with zsh scripts for
example, so only activate tree-sitter if sh-shell is bash or sh.
2023-02-08 22:43:46 +00:00
cead803781
feat(language/typescript): switch to new typescript-ts-mode
...
As typescript-mode has effectively been deprecated, let's switch to the
new typescript-ts-mode in Emacs 29.x.
2023-02-08 22:43:46 +00:00
346b22a06b
fix(language/rust): set rust-playground basedir so lsp-mode works correctly
...
The default basedir is within the user's Emacs config directory, which
is likely to already be a lsp workdir.
2023-02-07 19:07:13 +00:00
a30e06c9bb
feat(language/markdown): change tab-width to 2 (from the default 4)
2023-02-07 19:06:24 +00:00
1a55833d09
fix(editor/indent-guides): switch back to column display due to performance
...
Yet again, I'm switching highlight-indent-guides back to column mode. It
seemed that character mode performance had been improved. But I've run
into a number of files since where it tanks performance to the point key
strokes takes close to a second to render.
2023-02-07 19:04:22 +00:00
51451ecffd
feat(language/ruby): enable formatting with syntax_tree/stree
...
Default on-save formatting is still done via lsp-format-buffer, but the
the C-c C-f manual formatting action is overridden to also include
stree-format-buffer.
2023-01-20 21:09:02 +00:00
c1b96508a0
chore(language/go): add doc string for siren-define-golines-format-mode
2023-01-20 21:05:47 +00:00
bc5d60c07c
fix(language/go): add-on lsp servers do not need to be registered anymore
...
In fact, registering them, will override existing servers. When
registering the golangci-lint server, it prevents the regular gopls
server from being used.
2023-01-20 21:03:45 +00:00
63f9ef2ebb
chore(lsp): tweak naming of manual formatting functions/settings
2023-01-20 21:02:45 +00:00
bbbc9794ca
feat(completion/copilot): do not use copilot-mode in .env* files
2023-01-20 20:59:59 +00:00
09aa5cb1c6
feat(language/go): make go-playground nicer to use with extra keybindings
2023-01-15 20:57:29 +00:00
d83ca9867a
feat(editor): change highlight indent guides style to a thin line
...
For now, it seems that this no longer causes performance issues compared
to the column style. Time will tell if this stays true.
2023-01-15 20:57:29 +00:00
7e29a78b05
feat(language/rust): major improvements to Rust dev experience
2023-01-15 20:57:29 +00:00
23d6664609
feat(language/nix): add nix-mode for editing *.nix files
2023-01-09 10:49:23 +00:00
d6457f26de
feat(editor): add direnv-mode to set env vars via direnv
2023-01-09 10:48:26 +00:00
bc5add2f03
fix(spelling/flyspell): incorrect call to flyspell-prog-mode
2022-12-04 15:49:53 +00:00