doomemacs/modules/ui/nav-flash
Henrik Lissner 81ffed520b
Rename doom-before-switch-*-hook hooks
+ doom-before-switch-buffer-hook => doom-exit-buffer-hook
+ doom-before-switch-window-hook => doom-exit-window-hook
+ doom-after-switch-buffer-hook => doom-enter-buffer-hook
+ doom-after-switch-window-hook => doom-enter-window-hook

Shorter, easier-to-type names that better describe their intended
purpose.

The old names are still usable, but deprecated.
2018-07-03 03:41:08 +02:00
..
autoload.el Fix switch-window hooks when switching with the mouse 2018-03-27 02:50:40 -04:00
config.el Rename doom-before-switch-*-hook hooks 2018-07-03 03:41:08 +02:00
packages.el Move nav-flash from ui/doom to ui/nav-flash (#92) 2017-06-04 18:28:17 +02:00
README.org Standardize module READMEs 2017-08-21 20:13:31 +02:00

:ui nav-flash

This module uses nav-flash to flash the line around the cursor after any motion command that might reasonably send the cursor somewhere the eyes can't follow.

Tremendously helpful on a 30" 2560x1600 display.

Table of Contents   TOC

Install

This module has no other dependencies.

Configure

By default, nav-flash will be triggered whenever recenter is called. :feature jump attaches recenter to various hooks:

(add-hook!
  '(imenu-after-jump-hook evil-jumps-post-jump-hook
    counsel-grep-post-action-hook dumb-jump-after-jump-hook)
  #'recenter)