Commit Graph

570 Commits

Author SHA1 Message Date
2d39ce9fc1 feat(shell): improve vterm setup making vterm-copy-mode easier to use 2021-04-12 10:14:00 +01:00
8728d5da9e fix(lang): control Ruby formatting method on a per-project basis
Allow individual projects to override the default lsp-mode based
formatting method by setting rubocopfmt-on-save-use-lsp-format-buffer as
a dir-local variable.

This is useful for projects which require older versions of Ruby where
the latest Solargraph version is not supported, and formatting is better
handled by rubocop directly.
2021-04-12 10:05:22 +01:00
397b7edb20 fix(shell): windmove keybindings within vterm-mode 2021-04-08 10:37:19 +01:00
fd0e04ac02 chore(version-control): unpin diff-hl as recent performance issue has been fixed 2021-04-08 00:00:57 +01:00
b7b21c5e13 chore(formatting): move formatting related modules to a dedicated formatting directory 2021-04-07 23:50:11 +01:00
349f007fe9 feat(shell): add xterm-color package to colorize compilation buffers
Some commands which output to compilation buffers did not get their
output colorized correctly by default. This ensures that terminal based
escape sequences are correctly handled.
2021-04-07 23:50:11 +01:00
5f4aa98abd feat(theme): improve doom-themes overrides by using a proper theme
Instead of manually just setting faces after loading a doom-themes
theme, let's use a custom override theme which we apply right after
applying any doom-themes theme.

The override theme uses various doom-color helpers, so the colors it
uses will be based on the most recently applied doom-themes theme.
2021-04-07 23:50:11 +01:00
4e50263ded chore(lang): minor tweaks to ruby setup 2021-04-07 23:50:11 +01:00
f374dc4eab feat(lang): add rufo package for Ruby
As I'm not convinced formatting with rufo is good idea yet, this is
simply so I can play with it when I want to. It is not configured to
automatically format files on save.
2021-04-07 23:50:11 +01:00
7de79dd704 fix(formatting): specify parser for prettier-js to avoid errors
Some buffers which use markdown-mode or yaml mode yield errors when
using the prettier-js package to format them, as it looks at the file
extension by default to figure out what parser to use.

Some temporary files that use these modes don't have the correct file
extension, so prettier-js yields an error. My manually specifying the
correct "--parser" option for each major-mode, this is no longer an
issue.
2021-04-07 22:49:58 +01:00
dc24cd4f7f feat(lsp): create and use on-save minor modes for lsp-format-buffer and lsp-organize-imports commands 2021-04-07 22:45:59 +01:00
2d3c1b241c chore(lang): tweak ruby-mode format on save setup to use lsp-mode directly
Instead of executing lsp-format-buffer on save via the rubocopfmt
package, simply set it up as a buffer-local before-save-hook.

Also simplify the rubocopfmt package configuration, as I rarely use it
anymore, but would still want to be able to manually execute rubocopfmt.
2021-04-02 11:32:50 +01:00
d564fbe757 fix(linting): change flycheck fringe indicator to a left-pointing arrow
As flycheck uses the right fringe to indicate warnings/errors, the
default rightward pointing arrow never made much sense. This replaces it
with a custom leftward facing double-arrow so it actually points back at
the code in question.
2021-04-02 10:37:57 +01:00
301a134a72 feat(themes): make vertical divider between windows slightly more prominent 2021-04-02 10:37:25 +01:00
1e5cc844d2 feat(version-control): add module for git-gutter as an alternative to diff-hl
For now I'm still using diff-hl, but I wanted to get git-gutter
configured so I can easily give try it out and compare it against
diff-hl.
2021-04-02 10:35:39 +01:00
e7020e814a feat(version-control): tweak diff-hl style
Change style back to a plain vertical line, but slightly narrower than
last time which I ended up not liking, while also aligning it to the
right hand side of the left fringe, so there's a gap between the window
border and the diff-hl status line. Also tweak the colors a bit.

I feel this works better, and keeps things nice and clean.
2021-04-02 10:15:22 +01:00
5a425b5812 fix(version-control): pin diff-hl to a known good commit
The very next commit introduces a new feature to show git hunks, which
seems to have a negative impact on performance when moving the cursor
around, or adding/removing text within lines which are highlighted by
diff-hl while diff-hl-flydiff-mode is enabled.

So for now I'm pinning diff-hl to the commit right before this was
introduced.
2021-04-01 01:07:33 +01:00
009c3dc4b1 feat(lang): handle additional file patterns with sh-mode 2021-03-23 11:34:00 +00:00
29e7e066ce feat(lsp): disable lsp-ui docs on mouse hover
I thought it might be nice, and it kinda is until I screen share and
point around the in the code with the mouse.
2021-03-23 11:32:30 +00:00
268b9020aa feat(version-control): switch diff-hl style back to default
After a few weeks with a custom and more minimal fringe style, I think I
actually prefer the default style.
2021-03-22 11:09:14 +00:00
d0223d4253 fix(version-control): add missing magit hook for diff-hl 2021-03-22 11:08:36 +00:00
616ecc703f chore(misc): defer loading of explain-pause-mode 2021-03-22 11:08:09 +00:00
06f0db1035 feat(lang): use reformatter to enable golines formatting
This is much cleaner than hacking go-mode's gofmt function to run
golines. Instead there's a `golines` command, and `golines-on-save-mode`
available.
2021-03-22 11:06:06 +00:00
43ce3f6f73 fix(lang): populate auto-mode-alist with correct sh-mode function 2021-03-22 11:04:38 +00:00
0e6f2856c4 chore(lsp): move lsp-ui config into siren-lsp module
There's no need for having lsp-ui setup in a separate siren-lsp-ui
module, as there's little to no reason to ever use lsp-mode without
lsp-ui.
2021-03-15 23:12:10 +00:00
b7bc119af0 feat(lsp): tweak configuration for lsp-mode and lsp-ui
Overall enable more features, like lsp-ui's sideline.
2021-03-15 23:12:10 +00:00
da5ecfffcd feat(lang): enable manual formatting of go-mode buffers with golines 2021-03-15 23:12:10 +00:00
bc4328c6d5 fix(lang): disable duplicate before-save hooks for go-mode
Those hooks are already defined in the setup for lsp-go.
2021-03-15 23:12:10 +00:00
98b4e800f5 fix(misc): do not enable explain-pause-mode automatically when emacs starts
Instead let it be a something that needs to be manually started. It
seems to make Emacs just that little slower overall.
2021-03-15 23:12:04 +00:00
49c85482b1 feat(themes): make comments and vertical bar slightly more visible 2021-03-15 23:06:46 +00:00
bcd34409db fix(navigation): ensure helm-ring is correctly loaded on startup 2021-02-27 23:33:50 +00:00
e74800b5cb fix(lang): ensure Go related env vars are correctly loaded 2021-02-27 23:33:00 +00:00
affbe2e113 fix(text-editing): correctly load custom snippets on emacs startup 2021-02-27 23:30:05 +00:00
601a040d2c feat(version-control): add git-gutter support to siren-doom-themes customizations 2021-02-17 02:10:27 +00:00
00f6db64de feat(version-control): change diff-hl fringe bitmap style to be a thin solid line 2021-02-17 02:10:25 +00:00
efae487c94 feat(version-control): use diff-hl-margin-mode when running Emacs in a terminal 2021-02-17 02:04:56 +00:00
7a02ca009b chore(misc): tweak explain-pause-mode setup 2021-02-17 01:52:59 +00:00
395ad7ccac fix(startup): correctly setup deferred loading for various packages
This just ensures that various packages that can defer loading actually
does defer until they're first used.
2021-02-17 01:52:59 +00:00
831503060f chore(startup): stop using emacs-startup-hook to trigger package load
Packages that need to be loaded on emacs startup, should just be loaded
through use-package in a non-deferred manner.

It makes no real difference to startup, loading the packages either
slows down emacs before "startup" is complete, or right after it
completes. End result is that Emacs is unresponsive for basically the
same amount of time regardless.
2021-02-17 01:52:58 +00:00
147e9ed1d3 fix(lang): prevent dockerfile-mode wrongfully activating certain files
This is a temporary workaround until this pull request is accepted and
merged: https://github.com/spotify/dockerfile-mode/pull/63
2021-02-17 01:52:58 +00:00
345584e52c chore(text-editing): update move-dup package to v2.x
Version 2 seems to mostly just change the `md-` function/variable prefix
to be `move-dup-`.
2021-02-17 01:52:58 +00:00
03682066c7 feat(editor): update undo-tree to 0.8
Override the undo-tree package within straight.el to have it grab the
package directly from the official Git repo on GitLab.
2021-02-17 01:52:58 +00:00
1ff9e880ba feat(lang): enable lsp-mode for sql-mode via sqls language server 2021-02-14 22:26:07 +00:00
dd4c77ad24 fix(lang): for formatting of *.sql files with pgformatter 2021-02-14 22:25:48 +00:00
f41a9daff1 fix(lang): debug current go test now works in non-root module packages 2021-02-14 22:24:47 +00:00
3e8bbe36f4 fix(workspaces): don't hide tab-bar on startup
Recent native-comp builds glitch out running in a terminal when
tab-bar-mode is enabled and tab-bar-show is set to nil. I'm not sure if
it's a native-comp specific thing, or just latest emacs-28 dev.
2021-01-21 11:07:24 +00:00
4f1e68f33e fix(lang): correctly add rubocopfmt package vars to list of safe local vars 2021-01-21 10:34:05 +00:00
3f5b3ba9ca chore(lang): mark rubocopfmt-on-save-use-lsp-format-buffer as safe local variable 2021-01-15 02:11:20 +00:00
8329c7e912 fix(projects): correctly suppress treemacs load-time warnings 2021-01-15 02:11:20 +00:00
2438f0ab90 fix(lang): correctly set projectile igonore directories 2021-01-15 02:11:20 +00:00