Skip to content

Boruch-Baum/emacs-cursor-flash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cursor-flash.el

  • Highlights the cursor on buffer/window-switch

  • Flashes a square of positions around POINT for a customizable interval.

This package temporarily highlights the area immediately surrounding POINT when navigating amongst buffers and windows. It is intended to assist in visually identifying the current POINT and the current window when many windows are on the same frame or when windows are very large (related stackexchange question).

Dependencies: NONE

Installation:

  1. Evaluate or load or install this file.

  2. Optionally, define a global keybinding or defalias for function cursor-flash-mode

         (global-set-key (kbd "foo") 'cursor-flash-mode))
         (defalias 'cursor-flash-mode 'foo)
  1. Optionally, To automatically enable the mode when starting Emacs, add an equivalent of the following to your init file:
         (require 'cursor-flash)
         (cursor-flash-mode 1)

Operation:

M-x cursor-flash-mode

Configuration:

M-x customize-group cursor-flash

You can customize variable cursor-flash-interval and face cursor-flash-face.

Compatibility:

  • Tested on Debian Emacs 27 nox.

  • Includes support to operate nicely with yascroll-bar-mode and vline-mode. It temporarily suspends those modes locally during a flash in order not to make the buffer display jump around.

Feedback:

  • It's best to contact me by opening an 'issue' on the package's github repository or, distant second-best, by direct e-mail.

  • Code contributions are welcome and github starring is appreciated.

Colophon:

Some other Emacs software that I've published

About

Highlight the cursor on buffer/window-switch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published