doomemacs/modules/ui/nav-flash
Henrik Lissner a05b1877be
Rewrite switch-{buffer,window} hooks
+ Add doom-switch-frame-hook
+ Replace doom-{enter,exit}-{buffer,window}-hook with
  doom-switch-{buffer,window}-hook
+ New switch-buffer hooks run on buffer-list-update-hook rather than
  in select-window advice.
+ Blank our buffer-list-update-hook in some places to reduce how many
  times it gets triggered.
2019-03-08 02:37:33 -05:00
..
autoload.el
config.el Rewrite switch-{buffer,window} hooks 2019-03-08 02:37:33 -05:00
packages.el
README.org

: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)