Refactor evil-snipe layer to use use-package.

This commit is contained in:
person808 2015-04-02 19:06:43 -10:00 committed by syl20bnr
parent bdf370c050
commit a4bf293bc2

View file

@ -6,16 +6,17 @@ which require an initialization must be listed explicitly in the list.")
"List of packages to exclude.")
(defun evil-snipe/init-evil-snipe ()
(require 'evil-snipe)
(global-evil-snipe-mode t)
(setq evil-snipe-scope 'whole-buffer
evil-snipe-enable-highlight t
evil-snipe-enable-incremental-highlight t
evil-snipe-enable-half-cursor nil
evil-snipe-show-prompt nil
evil-snipe-smart-case t)
(when evil-snipe-enable-alternate-f-and-t-behaviors
(setq evil-snipe-repeat-scope 'whole-buffer
evil-snipe-override-evil t)))
(use-package evil-snipe
:diminish evil-snipe-mode
:init
(setq evil-snipe-scope 'whole-buffer
evil-snipe-enable-highlight t
evil-snipe-enable-incremental-highlight t
evil-snipe-enable-half-cursor nil
evil-snipe-show-prompt nil
evil-snipe-smart-case t)
(when evil-snipe-enable-alternate-f-and-t-behaviors
(setq evil-snipe-repeat-scope 'whole-buffer
evil-snipe-override-evil t))
:config
(global-evil-snipe-mode t)))