Commit Graph

494 Commits

Author SHA1 Message Date
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
c1ddbe37aa feat(workspaces): add siren-tab-bar module with custom tab-bar-mode setup 2020-08-16 14:39:13 +01:00
5bddc53795 chore(projects): remove needless require calls
These require calls were for with-eval-after-load expressions, but
there's no need to require the relevant modules.
2020-08-16 14:21:01 +01:00
9bd34f805f feat(projects): use all-the-icons in treemacs 2020-08-16 14:21:01 +01:00
bab7a08fc4 chore(workspaces): create siren-workspace-map to handle C-z prefix
Previously I've always kinda "hacked" things to get C-z prefixes for
various workspace-related packages to work. Now it's finally setup
correctly with a custom siren-workspace-map keymap bound to C-z, and
relevant packages adding keybindings to it.
2020-08-16 14:21:00 +01:00
208394ef00 feat(projects): tweak projectile keybindings
- Bind projectile-switch-to-buffer to `C-c b` to compliment `C-x b`.
- Remove keybindings I never use.
2020-08-16 14:21:00 +01:00
a8ec880b69 feat(shell): improve vterm-mode configuration
- Enable switching windows with my custom M-i, M-k, M-j, and M-l
  windmove keybindings
- Disable hl-line-mode for vterm buffers. The hl-line would constantly
  flicker in an annoying manner while typing.
2020-08-16 14:21:00 +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
3602399165 chore(workspaces): improve persp-mode index switching keybinding code 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