doomemacs/modules/config/default
James Ravn 300bc65918
Use lsp-format-region-or-buffer if available
Currently the user has to select `SPC c F` for lsp format. But if
lsp-mode is enabled, the user will always want to use the LSP formatter.
So this changes the default `SPC c f` to use lsp formatter if available.
This simplifies the interface a bit so the user doesn't have to worry
about selecting the "right" format, just like how other commands get
auto bound to LSP functions.
2020-05-05 09:52:44 +01:00
..
autoload Fix #3004: stale root cache on project search 2020-04-30 19:02:20 -04:00
+emacs-bindings.el Use lsp-format-region-or-buffer if available 2020-05-05 09:52:44 +01:00
+emacs.el def-advice!->defadvice! & conform to new advice conventions 2019-07-23 17:24:56 +02:00
+evil-bindings.el Use lsp-format-region-or-buffer if available 2020-05-05 09:52:44 +01:00
+evil.el General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
config.el Add +default-want-RET-continue-comments option 2020-04-30 16:29:12 -04:00
packages.el Bump :config 2020-04-30 01:30:19 -04:00
README.org Move emacs-snippets -> doom-snippets 2019-07-14 17:05:48 +02:00

: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+!