mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
💥 private/default: add +bindings, +snippets & +evil-commands features #383
This is a breaking change. You'll need to add these three flags to your init.el to restore the defaults.
This commit is contained in:
@ -138,5 +138,6 @@
|
||||
;; the defaults module. It contains a Spacemacs-inspired keybinding
|
||||
;; scheme and additional ex commands for evil-mode. Use it as a reference
|
||||
;; for your own.
|
||||
:private default)
|
||||
:private
|
||||
(default +bindings +snippets +evil-commands))
|
||||
|
||||
|
@ -1,13 +1,15 @@
|
||||
;;; private/default/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(load! +bindings)
|
||||
(if (featurep! +bindings) (load! +bindings))
|
||||
|
||||
|
||||
;;
|
||||
;; Plugins
|
||||
;;
|
||||
|
||||
(def-package! emacs-snippets :after yasnippet)
|
||||
(def-package! emacs-snippets
|
||||
:if (featurep! +snippets)
|
||||
:after yasnippet)
|
||||
|
||||
|
||||
;;
|
||||
@ -22,8 +24,10 @@
|
||||
|
||||
|
||||
(when (featurep 'evil)
|
||||
(load! +evil-commands)
|
||||
(when (featurep! +evil-commands)
|
||||
(load! +evil-commands))
|
||||
|
||||
(when (featurep! +bindings)
|
||||
;; Makes ; and , the universal repeat-keys in evil-mode
|
||||
(defmacro do-repeat! (command next-func prev-func)
|
||||
"Repeat motions with ;/,"
|
||||
@ -81,4 +85,4 @@
|
||||
(evil-snipe-enable-highlight)
|
||||
(evil-snipe-enable-incremental-highlight))))
|
||||
(set-transient-map evilem-map)
|
||||
(which-key-reload-key-sequence prefix))))
|
||||
(which-key-reload-key-sequence prefix)))))
|
||||
|
Reference in New Issue
Block a user