From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Highlighting current window
Date: Sun, 01 Jul 2012 03:56:34 +0200 [thread overview]
Message-ID: <87fw9c2qi5.fsf@web.de> (raw)
In-Reply-To: <mailman.3792.1341105740.855.help-gnu-emacs@gnu.org> (Drew Adams's message of "Sat, 30 Jun 2012 18:22:02 -0700")
"Drew Adams" <drew.adams@oracle.com> writes:
> There is also crosshairs.el, which extends hl-line+ by adding a
> vertical line through point. So it is easy to see where the cursor is
> (e.g. when you move your attention to another window). Typically you
> use the crosshairs display temporarily.
>
> http://www.emacswiki.org/emacs/CrosshairHighlighting
This indeed works very well for this purpose. You see which window is
selected, as well as the position of point in that window at the same
time.
I use a setup like the following (just as an example):
--8<---------------cut here---------------start------------->8---
(add-hook ;flash selected window when changing window config
'window-size-change-functions
#'(lambda (_)
(when
(memq last-command
'(split-window-vertically
split-window-horizontally
delete-window icicle-delete-window
delete-other-windows))
(crosshairs-flash))))
(global-set-key [S-next]
(lambda () (interactive)
(other-window 1) (crosshairs-flash)))
(global-set-key [S-prior]
(lambda () (interactive)
--8<---------------cut here---------------end--------------->8---
Michael.
next prev parent reply other threads:[~2012-07-01 1:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-30 10:30 Highlighting current window Francesco Mazzoli
2012-06-30 18:23 ` Drew Adams
2012-06-30 19:30 ` Francesco Mazzoli
2012-06-30 20:16 ` Christopher Grubert
2012-07-01 1:22 ` Drew Adams
2012-07-01 1:48 ` Christopher Grubert
[not found] ` <mailman.3792.1341105740.855.help-gnu-emacs@gnu.org>
2012-07-01 1:56 ` Michael Heerdegen [this message]
2012-07-01 11:49 ` Francesco Mazzoli
-- strict thread matches above, loose matches on Subject: below --
2012-07-01 9:06 martin rudalics
2012-07-04 1:20 ` Le Wang
2012-07-04 9:18 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fw9c2qi5.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).