Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Briefly highlight the current line in Emacs

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 ert-tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.markdown
Octocat-spinner-32 nav-flash.el

Build Status


Briefly highlight the current line in Emacs.


(require 'nav-flash)



Nav-flash temporarily highlights the line containing the point, which is sometimes useful for orientation after a navigation command.

There is no user-level interface for this library; it is only used by other Lisp libraries. However, you might find it useful to call nav-flash-show in your ~/.emacs file. For example, the following hook causes a flash to appear after navigating via imenu:

(add-hook 'imenu-after-jump-hook 'nav-flash-show nil t)

See Also

M-x customize-group RET nav-flash RET
M-x customize-group RET pulse RET


This library reuses an overlay defined in compile.el, but should not affect the normal use of compile.el / next-error.

Pulse.el provides similar functionality and is included with Emacs. This library can use pulse.el, but does not do so by default, because pulse.el uses sit-for, breaking this type of construction:

(with-temp-message "message here"
   (sit-for 2))

When using an overlay and timer for cleanup (as nav-flash does by default) the flash and message appear simultaneously.

Nav-flash.el is also simpler than pulse.el.

Compatibility and Requirements

GNU Emacs version 24.4-devel     : yes, at the time of writing
GNU Emacs version 24.3           : yes
GNU Emacs version 23.3           : yes
GNU Emacs version 22.2           : yes, with some limitations
GNU Emacs version 21.x and lower : unknown

No external dependencies

Something went wrong with that request. Please try again.