Replace :ui evil-goggles w/ :ui ophints

Now offers op hinting for non-evil users.
This commit is contained in:
Henrik Lissner 2019-04-19 17:26:26 -04:00
parent e75b7f520a
commit 79ee09d65b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 44 additions and 25 deletions

View file

@ -0,0 +1,24 @@
;;; ui/ophints/config.el -*- lexical-binding: t; -*-
(def-package! evil-goggles
:when (featurep! :feature evil)
:after-call pre-command-hook
:init
(setq evil-goggles-duration 0.1
evil-goggles-pulse nil ; too slow
;; evil-goggles provides a good indicator of what has been affected.
;; delete/change is obvious, so I'd rather disable it for these.
evil-goggles-enable-delete nil
evil-goggles-enable-change nil)
:config
(evil-goggles-mode +1))
(def-package! volatile-highlights
:unless (featurep! :feature evil)
:after-call pre-command-hook
:config
(volatile-highlights-mode)
(after! undo-tree
(vhl/define-extension 'undo-tree 'undo-tree-yank 'undo-tree-move)
(vhl/install-extension 'undo-tree)))