doomemacs/modules/config/default
Henrik Lissner 46bea60ad3
Add :Read ex command & 'SPC i p' keybind
This can be used to extract paths from evil-ex style paths. e.g. the
following inserts the stdout into the current buffer (assuming we're in
~/some/project/filename.c):

  :R!echo %:P      ~/some/project
  :R!echo %:t      filename.c
  :R!echo %:e      c
  :R!echo %:r      filename
  :R!echo ~/another/project/%:t:r.h
    ~/another/project/filename.h
  :R %             contents of current file

http://vimdoc.sourceforge.net/htmldoc/cmdline.html#filename-modifiers
has a full list of vim filename modifiers. Doom doesn't support all of
them, but it does support most of them.
2019-11-15 22:17:30 -05:00
..
autoload Fix wrong-number-of-arguments on newline-and-indent 2019-11-12 15:24:02 -05:00
+emacs-bindings.el completion/ivy: minor refactor 2019-10-25 20:25:21 -04:00
+emacs.el def-advice!->defadvice! & conform to new advice conventions 2019-07-23 17:24:56 +02:00
+evil-bindings.el Add :Read ex command & 'SPC i p' keybind 2019-11-15 22:17:30 -05:00
+evil.el General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
config.el [keys] which-key desc also on C-h d and C-h r 2019-11-01 12:21:07 +01:00
packages.el Add drag-stuff package #562 2019-10-07 21:36:27 -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+!