This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+vim/evil-snipe/packages.el

38 lines
1.2 KiB
EmacsLisp
Raw Normal View History

(setq evil-snipe-packages
'(
evil-snipe
magit
2016-02-23 09:21:21 +00:00
ranger
))
2015-02-26 19:15:57 +00:00
(defun evil-snipe/init-evil-snipe ()
(use-package evil-snipe
2015-10-31 17:50:33 +00:00
:diminish evil-snipe-local-mode
:init
(setq evil-snipe-scope 'whole-buffer
evil-snipe-enable-highlight t
evil-snipe-enable-incremental-highlight t
evil-snipe-auto-disable-substitute t
evil-snipe-show-prompt nil
evil-snipe-smart-case t)
:config
(progn
(if evil-snipe-enable-alternate-f-and-t-behaviors
(progn
(setq evil-snipe-repeat-scope 'whole-buffer)
(evil-snipe-override-mode 1))
(evil-snipe-mode 1)))))
(defun evil-snipe/post-init-magit ()
(if evil-snipe-enable-alternate-f-and-t-behaviors
(progn
(add-hook 'magit-mode-hook 'turn-off-evil-snipe-override-mode)
(add-hook 'git-rebase-mode-hook 'turn-off-evil-snipe-override-mode))
(add-hook 'magit-mode-hook 'turn-off-evil-snipe-mode)
(add-hook 'git-rebase-mode-hook 'turn-off-evil-snipe-mode)))
2016-02-23 09:21:21 +00:00
(defun evil-snipe/post-init-ranger ()
(if evil-snipe-enable-alternate-f-and-t-behaviors
(add-hook 'ranger-mode-hook 'turn-off-evil-snipe-override-mode)
(add-hook 'ranger-mode-hook 'turn-off-evil-snipe-mode)))