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

@ -19,7 +19,8 @@
(:emacs (electric-indent (:emacs electric))
(hideshow (:editor fold)))
(:ui (doom-modeline (:ui modeline)))
(:ui (fci (:ui fill-column))))
(:ui (fci (:ui fill-column)))
(:ui (evil-goggles (:ui ophints))))
"An alist of deprecated modules, mapping deprecated modules to an optional new
location (which will create an alias). Each CAR and CDR is a (CATEGORY .
MODULES). E.g.

View file

@ -22,17 +22,17 @@
doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs
evil-goggles ; display visual hints when editing in evil
;;fill-column ; a `fill-column' indicator
hl-todo ; highlight TODO/FIXME/NOTE tags
;;indent-guides ; highlighted indent columns
modeline ; snazzy, Atom-inspired modeline, plus API
nav-flash ; blink the current line after jumping
;;neotree ; a project drawer, like NERDTree for vim
treemacs ; a project drawer, like neotree but cooler
ophints ; highlight the region an operation acts on
(popup ; tame sudden yet inevitable temporary windows
+all ; catch all popups that start with an asterix
+defaults) ; default popup rules
treemacs ; a project drawer, like neotree but cooler
;;pretty-code ; replace bits of code with pretty symbols
;;tabbar ; FIXME an (incomplete) tab bar for Emacs
;;unicode ; extended unicode support for various languages

View file

@ -1,16 +0,0 @@
#+TITLE: :ui evil-goggles
This module uses ~evil goggles~ to displays visual hints when editing with evil.
* Table of Contents :TOC:
- [[#install][Install]]
- [[#configure][Configure]]
* Install
This module requires:
+ ~evil~ (inherently tied to evil mode)
* Configure
By default, ~evil-goggles~ will be enabled by default and requires no additional configuration.

View file

@ -1,5 +0,0 @@
;; -*- no-byte-compile: t; -*-
;;; ui/evil-goggles/packages.el
(when (featurep! :feature evil)
(package! evil-goggles))

View file

@ -0,0 +1,23 @@
#+TITLE: ui/ophints
#+DATE: June 4, 2017
#+SINCE: v2.0
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
* Description
This module provides op-hints (operation hinting), i.e. visual feedback for
certain operations. It highlights regions of text that the last operation (like
yank) acted on.
Uses ~evil-goggles~ for evil users and ~volatile-highlights~ otherwise.
** Module Flags
This module provides no flags.
** Plugins
+ [[https://github.com/edkolev/evil-goggles/][evil-goggles]]*
+ [[https://github.com/k-talo/volatile-highlights.el][volatile-highlights]]*

View file

@ -1,4 +1,4 @@
;;; ui/evil-goggles/config.el -*- lexical-binding: t; -*-
;;; ui/ophints/config.el -*- lexical-binding: t; -*-
(def-package! evil-goggles
:when (featurep! :feature evil)
@ -12,3 +12,13 @@
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)))

View file

@ -0,0 +1,6 @@
;; -*- no-byte-compile: t; -*-
;;; ui/ophints/packages.el
(if (featurep! :feature evil)
(package! evil-goggles)
(package! volatile-highlights))