- Highlights the current line and column
This package simultaneously applies vline-mode
and hl-line-mode
,
with tweaks, to present POINT in highlighted cross-hairs, reporting
the value of POINT as a message in the echo area. This will remain in
effect until toggled manually (function xhair-mode
by default),
or until the next keypress (function xhair
by default), or for
a set interval (function xhair-flash
by default).
- vline - for
vline-mode
-
Evaluate or load or install this file.
-
Optionally, define a global keybinding or defalias for any of the commands you intend to use:
xhair
,xhair-mode
, and/orxhair-flash
.
(global-set-key (kbd "foo") 'xhair))
(defalias 'xhair 'foo)
M-x xhair-mode
- Apply until manually toggled
M-x xhair
- Apply until next keypress
M-x xhair-flash
- Apply for a set interval
Refer to the function docstrings for further details.
M-x customize-group
xhair
You can customize face xhair-face
, variable
xhair-flash-interval
and variable
xhair-eldoc-idle-delay
.
-
Tested on Debian Emacs 27 nox.
-
Operates nicely with
yascroll-bar-mode
. It temporarily suspends that mode locally in order not to make the buffer display jump around. -
Operates nicely with
eldoc-mode
. It delays eldoc messages to give the user time to read the value of POINT from the echo area.
-
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.
This package is based upon `crosshairs.el' by Drew Adams, available at:
https://www.emacswiki.org/emacs/download/crosshairs.el
Its main differences from Drew's package is that it:
- Is MELPA-friendly
- Reduces dependencies
- Reduces features (notably:
crosshairs-toggle-when-idle
) - Simplifies code-base
- Applies a single unique face, by default
- Suspends
yascroll-bar-mode
, to not interfere withvline-mode
- Reports POINT for all navigation for duration of mode
- Delays
eldoc-mode
messages, to not interfere with reporting POINT - Suppresses output to Messages buffer
- Changes documentation
- Eschews all use of macro `define-minor-mode'
- Copyright (C) 2021 Boruch Baum [email protected]
- Author/Maintainer: Boruch Baum [email protected]
- Homepage: https://github.com/Boruch-Baum/emacs-xhair
- SPDX-License-Identifier: GPL-3.0-or-later
-
- Large collection of interoperable dired extensions
- https://github.com/Boruch-Baum/emacs-diredc
-
- Download and play crossword puzzles, in Emacs!
- https://github.com/Boruch-Baum/emacs-crossword
-
Emacs-w3m
- Extensions to the classic web browser (fork)
- Advanced downloader (bulk, regex, queue management, resume aborted)
- Scrub history
- More ...
- https://github.com/Boruch-Baum/emacs-w3m
- Extensions to the classic web browser (fork)
-
- Simple keybinding cheat-sheet and launcher
- https://github.com/Boruch-Baum/emacs-key-assist
-
Cursor-flash
- Highlight the cursor on buffer/window-switch
- https://github.com/Boruch-Baum/emacs-cursor-flash
-
- Make org documentation from an elisp source file
- https://github.com/Boruch-Baum/emacs-pkg-overview
-
- Turn home and end keys to multi-use navigation keys
- https://github.com/Boruch-Baum/emacs-home-end
-
- perform different actions when repeating a key
- https://github.com/Boruch-Baum/emacs-keypress-multi-event
-
Post-mode - Updates to the abandoned email editing package (fork)