nschum / highlight-symbol.el

Emacs: automatic and manual symbol highlighting
http://nschum.de/src/emacs/highlight-symbol/
274 stars 41 forks source link

(global-set-key [(control f3)] 'highlight-symbol) results in 'Wrong type argument: commandp, highlight-symbol" #60

Closed onlinespending closed 2 years ago

onlinespending commented 2 years ago

While M-x highlight-symbol works just fine, if I use the key binding specified in the highlight-symbol.el README.md, it results in the error "Wrong type argument: commandp, highlight-symbol". Given that it's a simple copy and paste job from the README, I'm at a loss as to what's the culprit here.

This is with Emacs 27.2 and -nw.

onlinespending commented 2 years ago

This occurred because highlight-symbol is now part of Emacs, but its functionality doesn't mimic this version entirely. I manually copied this highlight-symbol.el into my lisp folder, and now can activate highlight-symbol with a key binding