Symbol at the highlighted cursor in Emacs (I am mainly used to highlight variables)

Source: Internet
Author: User

Home page: http://nschum.de/src/emacs/highlight-symbol/

Download URL: http://nschum.de/src/emacs/highlight-symbol/highlight-symbol.el

 

Mkdir-P ~ /. Emacs. d/highlight-Symbol

Cd ~ /. Emacs. d/highlight-Symbol

Wget http://nschum.de/src/emacs/highlight-symbol/highlight-symbol.el

 

Put below lines to your. emacs file

 

 

; Highlight

(Add-to-list 'Load-Path

"~ /. Emacs. d/highlight-symbol ")

(Load-file "~ /. Emacs. d/highlight-symbol/highlight-symbol.el ")

; (Require 'highlight-symbol)

(Global-set-key "/C-CGG" 'highlight-symbol-at-point)

(Global-set-Key [(control F3)] 'highlight-symbol-at-point)

(Global-set-Key [F3] 'highlight-symbol-Next)

(Global-set-Key [(shift F3)] 'highlight-symbol-PREV)

(Global-set-Key [(meta F3)] 'highlight-symbol-PREV)

 

 

Now you can use "Ctrl + c g" or "Ctrl + F3" highlight current word.

"F3" go to next highlight word.

"Shift + F3" or "Alt + F3" go to previous highlight word.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.