💥 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:
Henrik Lissner 2018-01-30 21:24:18 -05:00
parent 5210ee5f7e
commit 26d1dd7991
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 62 additions and 57 deletions

View file

@ -138,5 +138,6 @@
;; the defaults module. It contains a Spacemacs-inspired keybinding ;; the defaults module. It contains a Spacemacs-inspired keybinding
;; scheme and additional ex commands for evil-mode. Use it as a reference ;; scheme and additional ex commands for evil-mode. Use it as a reference
;; for your own. ;; for your own.
:private default) :private
(default +bindings +snippets +evil-commands))

View file

@ -1,13 +1,15 @@
;;; private/default/config.el -*- lexical-binding: t; -*- ;;; private/default/config.el -*- lexical-binding: t; -*-
(load! +bindings) (if (featurep! +bindings) (load! +bindings))
;; ;;
;; Plugins ;; Plugins
;; ;;
(def-package! emacs-snippets :after yasnippet) (def-package! emacs-snippets
:if (featurep! +snippets)
:after yasnippet)
;; ;;
@ -22,8 +24,10 @@
(when (featurep 'evil) (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 ;; Makes ; and , the universal repeat-keys in evil-mode
(defmacro do-repeat! (command next-func prev-func) (defmacro do-repeat! (command next-func prev-func)
"Repeat motions with ;/," "Repeat motions with ;/,"
@ -81,4 +85,4 @@
(evil-snipe-enable-highlight) (evil-snipe-enable-highlight)
(evil-snipe-enable-incremental-highlight)))) (evil-snipe-enable-incremental-highlight))))
(set-transient-map evilem-map) (set-transient-map evilem-map)
(which-key-reload-key-sequence prefix)))) (which-key-reload-key-sequence prefix)))))