Commit Graph

504 Commits

Author SHA1 Message Date
aaf5eddecf chore(lsp): improve lsp setup for golang 2020-12-01 11:06:30 +00:00
9a51b31c9e feat(lang): expand golang-related env vars which are imported 2020-11-15 17:13:19 +00:00
3812b3df29 feat(lsp): bind lsp-ui-doc-glance to C-c C-d instead of lsp-ui-doc-show
Also tweak lsp-ui-doc-* to show documentation at point
2020-11-15 17:11:51 +00:00
7917f6ac56 feat(debugging): add dap-mode with basic config for Go and Ruby 2020-11-11 10:51:08 +00:00
41f2d5c826 chore(lang): mark rubocopfmt-include-unsafe-cops var as safe local var 2020-11-11 10:47:05 +00:00
811d14fda0 feat(editor): remove hideshowvis package
The folding indicators in the fringe haven't been working when clicked
for some time now. And they also take precedence over other things
displayed in the fringe like git status.
2020-11-11 10:38:28 +00:00
3adfd0c0eb feat(lang): enable terraform-ls language server support in terraform-mode 2020-11-09 10:47:40 +00:00
b784fccb40 chore(lang): set golang lsp config to include placeholders 2020-11-09 10:47:40 +00:00
12517bf9e3 chore(lsp): use lsp-deferred instead of lsp everywhere
Ensure language servers only start when a buffer is visible. This helps
with desktop restore speed, as various language servers do not start all
at the same time.
2020-11-09 10:47:39 +00:00
7ca255db9c feat(lang): format go-mode buffers on save with gofumpt via lsp-mode
Also tweak a couple of other gopls settings, and set a others to their
defaults for the purpose of ensuring they stay that way, and also to
make it more obvious within emacs what options are available.
2020-10-29 13:12:01 +00:00
3edd57c753 feat(misc): add rand-ip command to insert a random IPv4 address 2020-10-29 10:44:36 +00:00
f5405690b4 feat(version-control): correctly format forge-post-mode buffers with prettier-js
forge-post-mode uses temporary files for editing, which means that
prettier can't determine the formatter to use based on the
filename. Hence we need to explicitly pass `--parser markdown` as a CLI
arg to prettier.
2020-10-29 10:39:09 +00:00
192499a67b fix(lang): disable indentation highlights for Makefiles
The highlight-indent-guides package seems to have a cursor movement bug
with some modes, and makefile-mode is one of them.

Also Makefiles are tab indented, and the indentation highlight replaces
the tab character symbol, making it difficult to properly understand the
indentation level.
2020-10-27 13:13:15 +00:00
9fc83e9723 chore(lsp): Increase company-idle-delay for lsp
With it set to 0.0 suggestions would pop up instantly which is nice when
you need a suggestion, but it made using snippets really annoying. This
seems to feel like a nice middle-ground.
2020-10-27 13:09:58 +00:00
11ac1a822c fix(text-editing): enable yasnippet via global mode
Enabling it via a prog-mode-hook doesn't seem to work for some
major-modes.
2020-10-27 13:08:53 +00:00
60df63bc49 feat(misc): add various rand-* commands for generating randomized data 2020-10-27 13:05:42 +00:00
0e204bc3a7 feat(editor): add common language statements to highlight-symbol-ignore-list 2020-10-09 10:25:31 +01:00
9d45b1a908 fix(lang): ensure golang setup works with goenv 2020-10-09 10:23:27 +01:00
499349cf3a feat(org-mode): disable section body indentation
Due to wrapping text at 80 characters, having section content indented
to match the heading level of the section caused annoyance whenever I
restructured documents, as often the line wrapping was no longer correct
and needed adjustment.
2020-10-09 10:19:13 +01:00
b1689e0d79 feat(org-mode): enable auto-fill-mode to automatically wrap lines at 80 characters
I've manually been enabling auto-fill-mode on a per buffer basis for a
long time, constantly forgetting to add it to my org-mode setup. Not
anymore :P
2020-10-09 10:17:55 +01:00
a4cda6104b chore(projects): remove treemacs-persp package
I no longer use persp-mode, so there's no need to install a persp-mode
specific enhancement package for treemacs.
2020-10-04 16:10:44 +01:00
ef1e2fc9b8 chore(lsp): update lsp-mode custom to use new completion setting name 2020-09-27 19:48:27 +01:00
239dd32624 chore(lang): remove rbenv.el from ruby setup
I never used it, and doom-modeline does an excellent job of showing
active Ruby version, among other languages
2020-09-27 19:47:06 +01:00
5937589cc5 feat(lang): add jsonnet-mode 2020-09-27 19:46:27 +01:00
bda82a9c77 feat(macos): move files/folders to trash instead of deleting them on macOS
Use the osx-trash package to enable emacs' built-in trash support, which
seems to explicitly lack macOS support.
2020-09-27 19:45:37 +01:00
9c28e4229f feat(misc): add uuidgen package 2020-09-18 09:34:25 +01:00
374103bc25 chore(text-editing): minor tweak and cleanup of yasnippet setup 2020-09-10 20:24:18 +01:00
298587d35d fix(lang): resolve json-snatcher issue by overriding it with a fork 2020-09-10 20:22:42 +01:00
ba22b101ad chore(editor): add missing interactive call to helper commands 2020-09-09 09:53:23 +01:00
551ef2fc38 chore(projects): improve treemacs setup 2020-09-01 08:53:36 +01:00
6003c89994 fix(workspaces): do not auto-load "default" desktop on startup
If you launch Emacs by giving it a file to open, the auto-loading of the
default desktop would remove that file, as it is not likely to be part
of the default desktop.

Instead desktop management is now disabled until you specifically load a
desktop with `desktop+-load-or-create` (bound to `C-z C-z C-s`).
2020-08-31 10:08:40 +01:00
47598b94c6 chore(lsp): minor tweak/improvement to lsp setup 2020-08-31 10:06:19 +01:00
3d662739ee chore(completion): only load company/fci-mode fix when fci is loaded 2020-08-31 10:05:16 +01:00
4203fdb383 feat(workspaces): tweak tab-bar keybindings and turn on tab-bar-history-mode 2020-08-28 01:35:07 +01:00
e457163e4c chore(windows): clean up and improve windmove setup 2020-08-28 01:34:32 +01:00
7a1ab57606 feat(workspaces): strip down frame parameters saved to desktop file
Most visual/theme related frame parameters I prefer coming from the
active config, rather than being restored to what they were when the
desktop/session file was saved.
2020-08-27 23:46:00 +01:00
1c81570ef7 fix(packages): update package definitions to be compatible with latest straight.el
A recent change (https://github.com/raxod502/straight.el/pull/558) to
straight.el's use-package integration led to some of my :straight
definitions throwing errors.

When overriding the package name, do not wrap the real name in parens,
for example:

    ;; bad (no longer works)
    (use-package helm-global-bindings
      :straight (helm))

    ;; good (worked before, still works)
    (use-package helm-global-bindings
      :straight helm)
2020-08-27 23:37:28 +01:00
7a205aa74e chore(windows): fold siren-buffer-move module into siren-windmove module 2020-08-25 01:47:42 +01:00
c21df804ed chore(editor): fold siren-fci module into siren-display-fill-column module 2020-08-25 01:45:05 +01:00
04b252438b feat(workspaces): hide workspace name in modeline 2020-08-25 01:41:50 +01:00
dccb57747e feat(windows): use new windmove-swap-* functions on Emacs 27 and later
Fallback onto buffer-move package for Emacs versions prior to 27.
2020-08-20 22:13:38 +01:00
dc23ff532f docs: fix typo in a comment 2020-08-20 21:47:20 +01:00
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
658daa99d6 feat(core): add support for native-comp/gccemacs 2020-08-19 00:44:57 +01:00
4fbf607950 fix(workspaces): Improve reliability of desktop restore
Ignore some frame parameters which I don't care about being stored into
the desktop file, and would rather have the values from the loaded
config.
2020-08-19 00:43:07 +01:00
67498da953 fix(projects): ensure treemacs uses the central cache directory 2020-08-19 00:41:33 +01:00
88ab8f9007 fix(windows): set zoom-window keybindings correctly 2020-08-19 00:41:00 +01:00
e533a3b6d5 fix(lang): remove poly-markdown as it was glitchy 2020-08-19 00:39:59 +01:00
5ce5740b21 feat(workspaces): add siren-desktop module for managing emacs sessions 2020-08-16 14:52:45 +01:00