* how to temporarily highlight/unhighlight a word under cursor? @ 2007-08-14 22:44 Leo.Hou 2007-08-15 17:30 ` Nikolaj Schumacher 2007-08-17 12:47 ` Ken Goldman 0 siblings, 2 replies; 4+ messages in thread From: Leo.Hou @ 2007-08-14 22:44 UTC (permalink / raw) To: help-gnu-emacs Hi all, I am happy with the M-x highligh-phrase command except I need to manually input the complete word every time. I wonder if it is possible to create a macro or function in the .emacs file and assign a shortcut to it to automatically highlight the current word under cursor to the default "hi-yellow" color. Similarly I hope to have a key to unhighlight it. Any tip will be great. Thanks Leo ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to temporarily highlight/unhighlight a word under cursor? 2007-08-14 22:44 how to temporarily highlight/unhighlight a word under cursor? Leo.Hou @ 2007-08-15 17:30 ` Nikolaj Schumacher 2007-08-15 17:56 ` Lennart Borgman (gmail) 2007-08-17 12:47 ` Ken Goldman 1 sibling, 1 reply; 4+ messages in thread From: Nikolaj Schumacher @ 2007-08-15 17:30 UTC (permalink / raw) To: help-gnu-emacs "Leo.Hou" <leo.hou@gmail.com> wrote: > I wonder if it is possible to create a macro or function in the .emacs > file and assign a shortcut to it to automatically highlight the > current word under cursor to the default "hi-yellow" color. I did once. It's available here: http://nschum.de/src/emacs/highlight-symbol/ regards, Nikolaj Schumacher ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to temporarily highlight/unhighlight a word under cursor? 2007-08-15 17:30 ` Nikolaj Schumacher @ 2007-08-15 17:56 ` Lennart Borgman (gmail) 0 siblings, 0 replies; 4+ messages in thread From: Lennart Borgman (gmail) @ 2007-08-15 17:56 UTC (permalink / raw) To: Nikolaj Schumacher; +Cc: help-gnu-emacs Nikolaj Schumacher wrote: > "Leo.Hou" <leo.hou@gmail.com> wrote: > >> I wonder if it is possible to create a macro or function in the .emacs >> file and assign a shortcut to it to automatically highlight the >> current word under cursor to the default "hi-yellow" color. > > I did once. It's available here: > http://nschum.de/src/emacs/highlight-symbol/ > > > regards, > Nikolaj Schumacher Maybe this page also can help: http://www.emacswiki.org/cgi-bin/wiki/SearchAtPoint ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to temporarily highlight/unhighlight a word under cursor? 2007-08-14 22:44 how to temporarily highlight/unhighlight a word under cursor? Leo.Hou 2007-08-15 17:30 ` Nikolaj Schumacher @ 2007-08-17 12:47 ` Ken Goldman 1 sibling, 0 replies; 4+ messages in thread From: Ken Goldman @ 2007-08-17 12:47 UTC (permalink / raw) To: help-gnu-emacs I use ishl mode, which highlights additional search matches. Then C-s C-w does what you want. Leo.Hou wrote: > Hi all, > > I am happy with the M-x highligh-phrase command except I need to > manually input the complete word every time. > > I wonder if it is possible to create a macro or function in the .emacs > file and assign a shortcut to it to automatically highlight the > current word under cursor to the default "hi-yellow" color. > > Similarly I hope to have a key to unhighlight it. > > Any tip will be great. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-17 12:47 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-08-14 22:44 how to temporarily highlight/unhighlight a word under cursor? Leo.Hou 2007-08-15 17:30 ` Nikolaj Schumacher 2007-08-15 17:56 ` Lennart Borgman (gmail) 2007-08-17 12:47 ` Ken Goldman
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.