Commit Graph

109 Commits

Author SHA1 Message Date
098143191d fix(lang): Disable ruby-specific C-c C-b binding
C-C C-b is globally defined to run projectile-ibuffer.
2020-08-19 11:28:05 +01:00
00823307ac fix(lang): fix issue with json-mode when native-comp is used
It seems when native-comp is used, the kill-buffer-hook in json-snatcher
is registered, even though the library itself isn't registered. And the
`jsons-remove-buffer` function does not have a autoload declaration.

Hence we use use-package to manually create a autoload for the function.
2020-08-19 11:23:04 +01:00
e533a3b6d5 fix(lang): remove poly-markdown as it was glitchy 2020-08-19 00:39:59 +01:00
7ed3e92dbb feat(core): use buffer local hl-line-mode instead of global-hl-line-mode
This allows specific major-modes to disable hl-line-mode, which is
desired some terminal/shell modes like vterm where the hl-line flickers
constantly while typing.
2020-08-16 14:21:00 +01:00
d1f4e13886 feat(lang): add vue-mode for working with .vue files 2020-08-11 13:47:21 +01:00
d1e1f3f81c chore(lang): Cleaner lsp-mode setup for golang 2020-08-11 13:47:21 +01:00
4ba09d49b6 feat(lang): Remove robe package in favor of lsp-mode for Ruby 2020-08-11 13:47:20 +01:00
8376b71b7c feat(lang): Improve markdown formatting on save
Add additional CLI flags for prettier that so formatted markdown is
wrapped to 80 columns.
2020-07-21 18:27:55 +01:00
7d0ff606a3 feat(lang): Set new rubocopfmt-include-unsafe-cops option to t 2020-07-13 21:48:56 +01:00
9b5c22f9e2 feat(lang): Enable terminal-friendly quote toggle for ruby-mode 2020-06-27 14:20:23 +01:00
e586192a92 chore(lang): Add missing require to siren-terraform module 2020-06-07 15:55:46 +01:00
84bdd610ca feat(lang): Add jinja2-mode for Jinja2 templates 2020-06-07 15:55:00 +01:00
1ef8570f05 fix(lang): Work around for whitespace-mode issue with caddyfile-mode 2020-06-07 15:54:26 +01:00
a74610689e feat(lang): Language aware syntax highlight of markdown code-blocks
Enable polymode within code-blocks in Markdown files. Effectively, it
allows code-blocks of various languages to be handled by their
respective major modes, allowing correct syntax highlighting, snippets,
and other features to work as you would expect.
2020-06-07 15:50:49 +01:00
e6b52a534a feat(lang): Add caddyfile-mode for Caddy config files 2020-06-05 12:44:03 +01:00
bee04d384c docs(comment): Explain why we use reformatter for terraform-mode
Terraform-mode already comes with it's own
terraform-format-on-save-mode, but the way it inserts the corrected
source into the buffer often causes weird cursor movement which is
annoying.
2020-06-01 09:06:55 +01:00
e6ff06ea2c feat(lang): Add terraform-doc package 2020-05-30 16:50:41 +01:00
bf4c49dd1f fix(lang): terraform-mode now formats buffers on save correctly 2020-05-30 16:49:57 +01:00
41d80de4fb chore(lang): Various minor improvements for ruby-mode 2020-05-30 16:48:36 +01:00
a3a8c575dc chore(lang): Disable solargraph's multi-root feature
This means that each project gets a separate solargraph server, rather
than one server handles all projects. This does mean more memory is
consumed, but it overall it makes lsp-mode perform much faster, and be
more stable.
2020-05-26 23:49:46 +01:00
aee6af6128 fix(lang): Switch back to formatting Ruby with rubocop-daemon
Using `lsp-format-buffer` is a little bit unreliable, and for some
reason it also skips some cops.
2020-05-24 00:23:18 +01:00
0f13518f91 feat(lang): Add support for Haskell via haskell-mode 2020-05-24 00:22:54 +01:00
c220e65a99 feat(lang): Format shell scripts with shfmt on save 2020-05-24 00:16:53 +01:00
e4c864319a feat(lang): Add module for terraform-mode package
And enable formatting terraform files with `terraform fmt` through the
use of reformatter.
2020-05-24 00:15:32 +01:00
a71fc70e66 feat(lang): Format ruby files with lsp-format-buffer 2020-05-19 21:45:31 +01:00
764c4dae74 feat(lsp): Improve lsp-mode setup with a prefix key and company tweaks 2020-05-19 21:44:26 +01:00
25441f47d3 feat(lang): Use rubocop-daemon to format ruby files on save
On my 2016 MacBook Pro correction times are around 200ms with the
daemon, compared to around 3-4 seconds without.

There might be some issues if bundler depends heavily on gems included
in the project, but we'll see how that goes.
2020-05-19 11:10:19 +01:00
ac0bf9b42e feat(lang): Enable use of markdown-edit-code-block
This allows editing code blocks within markdown files in a separate
buffer with the proper language major-mode applied.

Also integrate it with recursive-narrow, so it can be triggered with via
narrowing commands.
2020-05-12 17:18:09 +01:00
974a2b86ed refactor(text-editing): Improve string-inflection package setup 2020-05-07 19:14:28 +01:00
92bc4af0fc fix(lang): Remove stray invalid character causing semi-random issues 2020-05-04 20:14:22 +01:00
48ad5c8993 chore(lang): Remove flycheck-golangci-lint package, lsp handles linting 2020-04-26 22:26:43 +01:00
54a9f62bbb chore(lang): Mark conf-mode as a built-in package for straight.el 2020-04-19 20:19:54 +01:00
f66d246337 feat(lang): Add nginx-mode and company-nginx packages 2020-04-19 20:18:54 +01:00
38e20c7d62 feat(lang): Add go-gen-test package for generating tabular tests
It uses gotests under the hood.
2020-03-30 22:08:05 +01:00
f0e8bd2388 chore(editor): Use siren-display-indentation exclusively
Instead of directly using the my current favorite indentation
highlighting package in various places, only use the
siren-display-indentation function. This lets me control it from a
single central place.
2020-03-30 21:57:32 +01:00
3e31bf0f2f chore(lang): Tweak company and whitespace options for golang
Setting company-echo-delay to 0.5 instead of 0 will help reduce unneeded
and intrusive code-completion popups while in the middle of typing. It
seemed like a good idea when I first set it, but after some use, no
thanks.

The whitespace-style tweak, effectively removes "indentation" from the
list of items whitespace-cleanup deals with on save. Indentation is
already being fixed by lsp-mode's before-save hooks, and
whitespace-cleanup was not very intelligent about it. It specifically
replaced all instances of four consecutive spaces in raw string
literals with a tab, which caused issues with multi-line raw strings
containing JSON.
2020-03-30 21:24:34 +01:00
5443b3dbc7 chore(lang): Tweaks projectile setup releated to dart and go 2020-03-30 21:24:01 +01:00
c7e507f5ba chore(editor): Switch back to highlight-symbol package
The auto-highlight-symbol package has a nicer interactive editing mode,
but it messes with the visual presentation for selected region and other
things. So let's go back to the less fancy but more reliable
highlight-symbol package.

Also let's properly disable both symbol highlighting packages in golang
and dart, where lsp-mode provides a better and more intelligent symbol
highlighting feature.
2020-03-30 21:21:10 +01:00
07521a1e71 feat(exports): Add pandoc exporting to org-mode and markdown-mode 2020-03-19 21:24:37 +00:00
faa82907d9 chore(lang): Set RET key for sh-mode-map with use-package 2020-03-19 21:24:37 +00:00
25152e1318 chore(lang): Improve go-mode setup and embrace lsp-mode
Use lsp-mode to format buffer on save, instead of gofmt or goimports.
2020-03-19 21:24:31 +00:00
efecb5172c chore(startup): Make various modules more lazy-loaded
This should improve startup speed a little bit.
2020-03-15 02:44:46 +00:00
af7323061f chore(lang): Disable ruby-specific keybinding
I don't use inf-ruby that much, so I'm fine with using it via M-x when
needed. Specially as a bunch of it's keybindings overrides a few global
keybindings I have set.
2020-03-06 18:38:31 +00:00
937e61d482 chore(lang): Disable use of spring with rspec-mode
Spring has changed and is no longer compatible with the way that
rspec-mode implements spring support. Hence we need to disable
rspec-mode's support and attempts at using Spring the wrong way.

Once rspec-mode has been updated to support spring again, we can
re-enable this.
2020-02-22 23:52:20 +00:00
6f3efe7233 chore(lang): Minor tweaks to major-mode file associations 2020-02-22 23:48:00 +00:00
eb792ce126 chore(lang): Improve plantuml-mode setup 2020-02-20 23:30:55 +00:00
d21a11dc71 chore(lang): Add support for mermaid diagrams
The org-babal features of mermaid-mode itself don't seem to work, but
the separate ob-mermaid does work.
2020-02-20 23:26:23 +00:00
951a40346e chore(packages): Disable packages I don't use 2020-02-04 10:08:41 +00:00
b13ca362cb feat(packages): Replace package.el with straight.el 2020-02-04 10:08:37 +00:00
ee916bb347 chore(lang): Update web-mode setup for Emacs 27
With Emacs 27 we are using the new built-in
display-fill-column-indicator mode. It does not have issues with
web-mode like fci-mode from the fill-column-indicator package does.
2020-01-28 21:54:24 +00:00