redguardtoo / mastering-emacs-in-one-year-guide

Be great at emacs in one year
6.36k stars 898 forks source link

replacement for highlight-symbol #154

Closed phye closed 4 years ago

phye commented 4 years ago

Noticed that you've recently removed highlight-symbol package in 291170, would like to know if you find better alternatives or simply because you don't use it anymore?

I'm heavily using it when reading code 😭 to highlight local variables .etc

redguardtoo commented 4 years ago

I'm not using highlight symbol. What's your workflow?

phye commented 4 years ago

Quite simple, when reading complex functions which may have several key variables, I'm using highlight-symbol to hightlight the variable, and then use highlight-symbol-next (which I bound to <comma leader>nn) and highlight-symbol-prev (pp) to jump back and forth.

Reason for not using simple searching is that you may want to keep multiple variables highlighted so that you can review their relationships more clearly.

redguardtoo commented 4 years ago

Make sense.

1fdf2680 Revert "remove highlight-symbol" (Chen Bin)

phye commented 4 years ago

Thanks.