doomemacs/modules/config/default
Henrik Lissner 09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
..
autoload
+bindings.el
+evil-commands.el
config.el Major refactor & optimization of how modules load their packages 2018-05-25 00:46:16 +02:00
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

Using another snippets library

Don't want to use provided one? Then add this to your private module,

;; in config/$USER/packages.el
(package! emacs-snippets :ignore t)

;; in config/$USER/config.el
(def-package-hook! emacs-snippets :disabled t)
(after! yasnippet
  (push "~/path/to/my/private/snippets" yas-snippet-dirs))

I'm not an evil user…

That's fine. All evil configuration is ignored if :feature 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+!