all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: Colin Yates <colin.yates@gmail.com>
Subject: Re: Automatically highlighting the symbol under point
Date: Fri, 21 Aug 2015 13:26:23 -0700	[thread overview]
Message-ID: <CAOj2CQTRfGnc5RnRQMG8URjv0bx=4FL6WH+xkBz+bg4U=d6-ng@mail.gmail.com> (raw)
In-Reply-To: <m2wpwocsha.fsf@gmail.com>

> I am using prelude and if my point is over a symbol then I can call
> 'highlight-symbol-under-point' which works great. However, I can't
> figure out how to turn it off.

You can use `unhighlight-regexp' (on `C-x w r' and/or `M-s h u') for
this. It prompts for a regexp, but for your scenario you can just hit
`RET' to accept the default.

> Ideally, I would like it to automatically highlight the symbol under
> point all the time, or at least when in a programming mode - is that
> possible and any prior art you can point me at?

Check out `idle-highlight-mode' (available in MELPA) for that:
https://github.com/nonsequitur/idle-highlight-mode

-- 
john



  reply	other threads:[~2015-08-21 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 20:10 Automatically highlighting the symbol under point Colin Yates
2015-08-21 20:26 ` John Mastro [this message]
2015-08-21 20:31   ` John Mastro
2015-08-21 20:34     ` Colin Yates
2015-08-22  5:36   ` Tassilo Horn

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOj2CQTRfGnc5RnRQMG8URjv0bx=4FL6WH+xkBz+bg4U=d6-ng@mail.gmail.com' \
    --to=john.b.mastro@gmail.com \
    --cc=colin.yates@gmail.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.