doomemacs/modules/ui/nav-flash
Henrik Lissner 09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
..
autoload.el Fix switch-window hooks when switching with the mouse 2018-03-27 02:50:40 -04:00
config.el Major refactor & optimization of how modules load their packages 2018-05-25 00:46:16 +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)