doomemacs/modules/config/default
Henrik Lissner d246307f87
config/default: bind SPC c {F,i,r} to LSP commands
These are experimental keybinds. I'm looking for a way to integrate
LSP's formatter commands (and lsp-organize-imports) into the :editor
format module. And a way to unify refactoring commands (perhaps with emr
or erefactor), including lsp-rename.

- 'SPC c F' -> format region or buffer
- 'SPC c i' -> organize imports
- 'SPC c r' -> rename symbol at point

Addresses #1417
2019-10-22 19:55:50 -04:00
..
autoload config/default: bind SPC c {F,i,r} to LSP commands 2019-10-22 19:55:50 -04:00
+emacs-bindings.el
+emacs.el
+evil-bindings.el config/default: bind SPC c {F,i,r} to LSP commands 2019-10-22 19:55:50 -04:00
+evil.el
config.el
packages.el
README.org

:config default

This module provides a set of reasonable defaults, including:

  • A Spacemacs-esque keybinding scheme
  • Extra Ex commands for evil-mode users
  • A yasnippet snippets library tailored to Doom emacs
  • A configuration for (almost) universally repeating searches with ; and ,

The defaults module is intended as a "reasonable-defaults" module, but also as a reference for your own private modules. You'll find my private module in a separate repo.

Refer to the Customization page on the wiki for details on starting your own private module.

Install

This module has no external dependencies.

Configuration

I'm not an evil user…

That's fine. All evil configuration is ignored if :editor evil is disabled.

Appendix

Commands

  • +default/browse-project
  • +default/browse-templates
  • +default/find-in-templates
  • +default/browse-emacsd
  • +default/find-in-emacsd
  • +default/browse-notes
  • +default/find-in-notes
  • +default/find-in-snippets

Hacks

  • epa-pinentry-mode is set to 'loopback, forcing gpg-agent to use the Emacs minibuffer when prompting for your passphrase. Only works with GPG 2.1+!