all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Wei Weng'" <wweng@acedsl.com>, <help-gnu-emacs@gnu.org>
Subject: RE: How do I highlight word at point?
Date: Sun, 19 Oct 2008 16:35:38 -0700	[thread overview]
Message-ID: <005d01c93243$648671e0$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <1224382569.209484@nntp.acecape.com>

> The title pretty much said it. :)

Not really. What do you mean by "highlight"? Most replies so far have assumed
that you mean just select the word (region highlighting).

If you mean instead that you want to change the foreground or background color
or something else about the appearance of the word using a text property or an
overlay, then there are many ways to do that. These alternatives might help:

1. Select the current word (or whatever you want to highlight). For example,
command `select-thing-near-point' in `thing-cmds.el' will do that. (I bind that
command to `M-@'.) 

Then hit `C-mouse-2' to get the `Text Properties' menu. Then do one of the
following:

a. Choose anything in the `Face', `Foreground', or `Background' submenus.
   Example: `Other' (or `M-o o') lets you specify a face to use.

b. If you use libraries `facemenu+.el' and `highlight.el', then choose anything
in the `Highlight' submenu. Example: `Highlight Region/Buffer'. (I bind that
command to `C-x C-y'.)

2. If you use `facemenu+.el' and `highlight.el', then you can alternatively use
command `hlt-highlighter' (or `Text Properties > Highlight > Highlighter Pen')
and then drag the mouse like a highlighter pen. (I bind that command to `C-x
mouse-2'.)

There are other commands in these libraries that will also let you highlight a
word (or whatever).

* http://www.emacswiki.org/cgi-bin/wiki/FaceMenuPlus - facemenu+.el
* http://www.emacswiki.org/emacs/HighLight - highlight.el
* http://www.emacswiki.org/emacs/ThingAtPointCommands - thing-cmds.el

See also nodes `Editing Format Info' and `Format Faces' in the Emacs menu - it
describes the vanilla `Text Properties' menu (e.g. 1a, above, but not 1b or 2).

See also http://www.emacswiki.org/emacs/HighlightTemporarily for related
possibilities.

HTH. Next time, please try to be more specific in your request - "highlight word
at point" can mean several different things in Emacs. The more specific you are,
the better the help you will get and the less likely the thread will wander off
topic.






  parent reply	other threads:[~2008-10-19 23:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-19  2:16 How do I highlight word at point? Wei Weng
2008-10-19  3:02 ` Giorgos Keramidas
2008-10-19 12:09   ` Francis Moreau
2008-10-19 16:19     ` Nikolaj Schumacher
     [not found]   ` <mailman.1504.1224419414.25473.help-gnu-emacs@gnu.org>
2008-10-19 13:24     ` Thorsten Bonow
2008-10-19 15:54       ` Francis Moreau
2008-10-19 15:14     ` Giorgos Keramidas
2008-10-19 15:52       ` Francis Moreau
2008-10-29 22:13   ` Francis Moreau
2008-10-29 22:44     ` Andreas Politz
2008-10-30 20:22       ` Francis Moreau
2008-10-30 13:57     ` Scott Frazer
2008-10-19  5:44 ` Xah
2008-10-19 17:00   ` Nikolaj Schumacher
     [not found]   ` <mailman.1521.1224435664.25473.help-gnu-emacs@gnu.org>
2008-10-19 20:10     ` Xah
2008-10-19 22:16       ` Drew Adams
2008-10-19 23:58       ` Nikolaj Schumacher
     [not found]       ` <mailman.1544.1224460736.25473.help-gnu-emacs@gnu.org>
2008-10-20  3:46         ` Xah
2008-10-20 12:31           ` Nikolaj Schumacher
     [not found]           ` <mailman.1579.1224505887.25473.help-gnu-emacs@gnu.org>
2008-10-20 18:43             ` Xah
2008-10-21  8:57               ` Nikolaj Schumacher
2008-10-19 23:35 ` Drew Adams [this message]
2008-10-19 23:39   ` Drew Adams
2008-10-21  3:43 ` htbest2000

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='005d01c93243$648671e0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=wweng@acedsl.com \
    /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.